diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index 0263dd1da..09198ecb0 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -13,7 +13,7 @@ import { Card, TextLogo, PlusIcon, - HamburgerIcon, + Avatar, } from 'omorphia' import { useLoading, useTheming } from '@/store/state' @@ -28,7 +28,13 @@ import SplashScreen from '@/components/ui/SplashScreen.vue' import ModrinthLoadingIndicator from '@/components/modrinth-loading-indicator' import { handleError, useNotifications } from '@/store/notifications.js' import { offline_listener, command_listener, warning_listener } from '@/helpers/events.js' -import { MinimizeIcon, MaximizeIcon, ChatIcon } from '@/assets/icons' +import { + MinimizeIcon, + MaximizeIcon, + ChatIcon, + ArrowLeftFromLineIcon, + ArrowRightFromLineIcon, +} from '@/assets/icons' import { isDev, getOS, isOffline, showLauncherLogsFolder } from '@/helpers/utils.js' import { mixpanel_track, @@ -282,8 +288,14 @@ const toggleSidebar = () => { >
-
@@ -327,10 +339,10 @@ const toggleSidebar = () => { :to="`/instance/${encodeURIComponent(instance.path)}`" class="btn icon-only collapsed-button" > - {{ instance.metadata.name }} @@ -358,7 +370,7 @@ const toggleSidebar = () => { @click="() => $refs.installationModal.show()" > - Create Profile + Create profile @@ -688,37 +700,44 @@ const toggleSidebar = () => { } } -.collapsed-button { - justify-content: flex-start; +:deep { + .non-collapse { + width: var(--sidebar-button-size) !important; + } - // width: var(--sidebar-icon-size); - height: var(--sidebar-button-size); - width: 100%; + .collapsed-button { + justify-content: flex-start; - flex-shrink: 0; - - padding: var(--sidebar-padding) !important; - border-radius: 99999px; - box-shadow: none; - - white-space: nowrap; - overflow: hidden; - - transition: all ease-in-out 0.1s; - - .collapsed-button__icon, - svg { - width: var(--sidebar-icon-size); - height: var(--sidebar-icon-size); + // width: var(--sidebar-icon-size); + height: var(--sidebar-button-size); + width: 100%; flex-shrink: 0; - border-radius: var(--radius-xs); - } + padding: var(--sidebar-padding) !important; + border-radius: 99999px; + box-shadow: none; + + white-space: nowrap; + overflow: hidden; - .collapsed-button__label { - opacity: var(--sidebar-label-opacity); transition: all ease-in-out 0.1s; + + .collapsed-button__icon, + svg { + width: var(--sidebar-icon-size) !important; + height: var(--sidebar-icon-size) !important; + + flex-shrink: 0; + + border-radius: var(--radius-xs); + } + + .collapsed-button__label { + word-spacing: normal; // Why is this even needed? + opacity: var(--sidebar-label-opacity); + transition: all ease-in-out 0.1s; + } } } diff --git a/theseus_gui/src/assets/icons/arrow-left-from-line.svg b/theseus_gui/src/assets/icons/arrow-left-from-line.svg new file mode 100644 index 000000000..79de99b94 --- /dev/null +++ b/theseus_gui/src/assets/icons/arrow-left-from-line.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theseus_gui/src/assets/icons/arrow-right-from-line.svg b/theseus_gui/src/assets/icons/arrow-right-from-line.svg new file mode 100644 index 000000000..dae5b9319 --- /dev/null +++ b/theseus_gui/src/assets/icons/arrow-right-from-line.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theseus_gui/src/assets/icons/index.js b/theseus_gui/src/assets/icons/index.js index 185e498b5..7126c2410 100644 --- a/theseus_gui/src/assets/icons/index.js +++ b/theseus_gui/src/assets/icons/index.js @@ -12,3 +12,5 @@ export { default as NewInstanceImage } from './new-instance.svg' export { default as MenuIcon } from './menu.svg' export { default as BugIcon } from './bug.svg' export { default as ChatIcon } from './messages-square.svg' +export { default as ArrowLeftFromLineIcon } from './arrow-left-from-line.svg' +export { default as ArrowRightFromLineIcon } from './arrow-right-from-line.svg' diff --git a/theseus_gui/src/components/ui/platform/AccountDropdown.vue b/theseus_gui/src/components/ui/platform/AccountDropdown.vue index 951eefa0e..43db82775 100644 --- a/theseus_gui/src/components/ui/platform/AccountDropdown.vue +++ b/theseus_gui/src/components/ui/platform/AccountDropdown.vue @@ -7,49 +7,40 @@ > - - - - - - - - + + + + + + + +