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(
|
return DropdownMenuItem(
|
||||||
value: colorMode,
|
value: colorMode,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(colorMode.humanName),
|
child: Text(colorMode.humanName, overflow: TextOverflow.ellipsis),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
onChanged: (colorMode) => vm.onChangeColorMode(context, colorMode),
|
onChanged: (colorMode) => vm.onChangeColorMode(context, colorMode),
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class CustomDropdownButton<T> extends StatelessWidget {
|
|||||||
child: DropdownButton<T>(
|
child: DropdownButton<T>(
|
||||||
value: value,
|
value: value,
|
||||||
isExpanded: expanded,
|
isExpanded: expanded,
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
underline: Container(),
|
underline: Container(),
|
||||||
borderRadius: Theme.of(context).inputDecorationTheme.borderRadius,
|
borderRadius: Theme.of(context).inputDecorationTheme.borderRadius,
|
||||||
items: items,
|
items: items,
|
||||||
|
|||||||
Reference in New Issue
Block a user