fix(app): float the chat composer as glass, cap the reading width, tidy chat chrome
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import 'dart:math' as math;
|
||||
|
||||
/// The widest the conversation's reading column grows: transcript rows and
|
||||
/// the floating composer share it, centred, so a wide window keeps a
|
||||
/// comfortable line length instead of stretching messages edge to edge.
|
||||
const double kChatReadingWidth = 760;
|
||||
|
||||
/// The space on each side of the centred reading column in [width].
|
||||
double chatReadingInset(double width) =>
|
||||
math.max(0, (width - kChatReadingWidth) / 2);
|
||||
Reference in New Issue
Block a user