Skip to content

Commit

Permalink
Merge branch 'macosui:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Samoticha authored Aug 13, 2024
2 parents e4fde02 + e35fdab commit 56aa22c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.0.8]
### 🛠️ Updated 🛠️
* Fixed `SidebarItem` text overflowing.

## [2.0.7]
### 🛠️ Updated 🛠️
* Made most widgets aware of the user’s accent color and window state by adding respective fields to `MacosThemeData`.
Expand Down
11 changes: 7 additions & 4 deletions lib/src/layout/sidebar/sidebar_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,14 @@ class _SidebarItem extends StatelessWidget {
child: item.leading!,
),
),
DefaultTextStyle(
style: labelStyle.copyWith(
color: selected ? textLuminance(selectedColor) : null,
Expanded(
child: DefaultTextStyle(
style: labelStyle.copyWith(
color: selected ? textLuminance(selectedColor) : null,
overflow: TextOverflow.ellipsis,
),
child: item.label,
),
child: item.label,
),
if (hasTrailing) ...[
const Spacer(),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
version: 2.0.7
version: 2.0.8
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"

Expand Down

0 comments on commit 56aa22c

Please sign in to comment.