diff --git a/web/repertory/lib/types/mount_config.dart b/web/repertory/lib/types/mount_config.dart index 25ffc7b5..7b95b38b 100644 --- a/web/repertory/lib/types/mount_config.dart +++ b/web/repertory/lib/types/mount_config.dart @@ -9,10 +9,9 @@ class MountConfig { final String _type; MountConfig({required name, required type}) : _name = name, _type = type; - UnmodifiableMapView get settings => UnmodifiableMapView(_settings); - String get name => _name; String get path => _path; + UnmodifiableMapView get settings => UnmodifiableMapView(_settings); IconData get state => _state; String get type => _type; diff --git a/web/repertory/lib/widgets/mount_widget.dart b/web/repertory/lib/widgets/mount_widget.dart index ea732dd5..b66f31f1 100644 --- a/web/repertory/lib/widgets/mount_widget.dart +++ b/web/repertory/lib/widgets/mount_widget.dart @@ -24,7 +24,7 @@ class _MountWidgetState extends State { final subTextColor = Colors.black; final isActive = mount.state == Icons.toggle_on; - final nameText = Text( + final nameText = SelectableText( formatMountName(mount.type, mount.name), style: TextStyle(color: subTextColor), ); @@ -41,11 +41,14 @@ class _MountWidgetState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ nameText, - Text(mount.path, style: TextStyle(color: subTextColor)), + SelectableText( + mount.path, + style: TextStyle(color: subTextColor), + ), ], ) : nameText, - title: Text( + title: SelectableText( initialCaps(mount.type), style: TextStyle(color: textColor, fontWeight: FontWeight.bold), ),