mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-06 11:21:15 -07:00
Reduce margin on narrow screens, flow the footer contents (#8042)
This commit is contained in:
14
packages/cli/src/utils/math.ts
Normal file
14
packages/cli/src/utils/math.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Linearly interpolates between two values.
|
||||
*
|
||||
* @param start The start value.
|
||||
* @param end The end value.
|
||||
* @param t The interpolation amount (typically between 0 and 1).
|
||||
*/
|
||||
export const lerp = (start: number, end: number, t: number): number => start + (end - start) * t;
|
||||
Reference in New Issue
Block a user