mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
fix: text overflow on color button
This commit is contained in:
@@ -77,7 +77,7 @@ class SettingsTab extends StatelessWidget {
|
||||
return DropdownMenuItem(
|
||||
value: colorMode,
|
||||
alignment: Alignment.center,
|
||||
child: Text(colorMode.humanName),
|
||||
child: Text(colorMode.humanName, overflow: TextOverflow.ellipsis),
|
||||
);
|
||||
}).toList(),
|
||||
onChanged: (colorMode) => vm.onChangeColorMode(context, colorMode),
|
||||
|
||||
@@ -24,6 +24,7 @@ class CustomDropdownButton<T> extends StatelessWidget {
|
||||
child: DropdownButton<T>(
|
||||
value: value,
|
||||
isExpanded: expanded,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
underline: Container(),
|
||||
borderRadius: Theme.of(context).inputDecorationTheme.borderRadius,
|
||||
items: items,
|
||||
|
||||
Reference in New Issue
Block a user