Skip to content

Commit e765916

Browse files
committed
Pixel perfect sidebar and settings page
1 parent 08b8275 commit e765916

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/components/AppSidebar.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<script lang="ts" setup>
22
import { open } from '@tauri-apps/api/shell'
3-
import { useKey } from '../composables/useKey'
43
import { Page, REPO_LINK } from '../constants'
5-
import { AppStorage } from '../storage'
64
import { useStore } from '../stores/store'
75
import { Icons } from './Icons'
86
import SidebarButton from './SidebarButton.vue'
@@ -19,6 +17,7 @@ const store = useStore()
1917
>
2018
<img
2119
style="width: 100%"
20+
draggable="false"
2221
src="/src/assets/img/icon.png"
2322
>
2423
</SidebarButton>
@@ -57,9 +56,8 @@ const store = useStore()
5756
display: flex;
5857
flex-direction: column;
5958
flex-wrap: nowrap;
60-
padding: 10px;
59+
padding: 20px 10px;
6160
background-color: var(--sidebar-bg);
62-
width: 57px;
6361
6462
.sync-icon-spin {
6563
animation: 1s spin linear infinite;

src/components/SidebarButton.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ const props = withDefaults(defineProps<Props>(), {
2121
<style lang="scss" scoped>
2222
.sidebar-button {
2323
padding: 8px;
24+
width: 35px;
2425
border-radius: 8px;
2526
color: var(--white-faded);
2627
border: 1px solid transparent;
28+
width: 35px;
29+
height: 35px;
30+
display: inline-flex;
31+
align-items: center;
32+
justify-content: center;
2733
@include focus-visible;
2834
2935
&.disabled {

src/pages/SettingsPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ useKey('esc', handleBack, { prevent: true })
106106
width: 100%;
107107
height: 100%;
108108
overflow-y: auto;
109-
padding: 25px 45px;
109+
padding: 20px 45px;
110110
display: flex;
111111
flex-flow: column nowrap;
112112

0 commit comments

Comments
 (0)