Skip to content

Commit 11656cf

Browse files
committed
format
1 parent 552f13b commit 11656cf

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

src/features/gallery/ipc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export interface ServerToClientEvents {}
55
export interface ClientToServerEvents {
66
'dirs/update': (paths: string[]) => void
77
'images/get': (dir: string, search?: ImageSearchOptions) => ImageData[]
8-
'favorite/add': (dir: string,path: string) => void
9-
'favorite/remove': (dir: string,path: string) => void
8+
'favorite/add': (dir: string, path: string) => void
9+
'favorite/remove': (dir: string, path: string) => void
1010
}

src/web/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ const Index = () => {
6262
return (
6363
<TabPanel
6464
class={css`
65-
transition: 0.2s;
6665
margin-left: ${isOpen() ? '0px' : '-150px'};
66+
transition: 0.2s;
6767
`}
6868
show={isSelected()}
6969
unmount={label !== 'WebUI'}

src/web/components/modal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import { Component, createEffect, createSignal, JSX, on } from 'solid-js'
44
import { useFloating } from '../hooks/use-floating'
55

66
const Background = styled.div`
7+
position: fixed;
78
top: 0;
89
left: 0;
910
width: 100vw;
1011
height: 100vh;
11-
position: fixed;
1212
background-color: rgba(0, 0, 0, 0.5);
1313
`
1414

1515
const Container = styled.div`
16+
position: fixed;
17+
z-index: 100;
1618
top: 0;
1719
left: 0;
20+
display: flex;
1821
width: 100vw;
1922
height: 100vh;
20-
position: fixed;
21-
display: flex;
22-
justify-content: center;
2323
align-items: center;
24-
z-index: 100;
24+
justify-content: center;
2525
`
2626
export const ModalPanel = styled.div`
2727
overflow: hidden;

src/web/components/ui/tabs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const TabList = styled.div<{ vertical?: boolean | undefined; close?: bool
3636
transition: 0.2s;
3737
3838
${(p) => (p.vertical ? 'height: 100%' : 'width: 100%')};
39+
3940
flex-direction: ${(p) => (p.vertical ? 'column' : 'row')};
4041
`
4142

@@ -50,7 +51,6 @@ export const Tab = styled.div<{ selected: boolean; vertical?: boolean | undefine
5051
user-select: none;
5152
align-items: center;
5253
text-align: right;
53-
5454
justify-content: ${(p) => (p.vertical ? 'flex-end' : 'center')};
5555
${(p) => (p.vertical ? 'width: 100%' : 'height: 100%')};
5656
@@ -61,6 +61,7 @@ export const Tab = styled.div<{ selected: boolean; vertical?: boolean | undefine
6161
right: ${(p) => (p.vertical ? '0' : '50')}%;
6262
${(p) => `${p.vertical ? 'height' : 'width'}:${p.selected ? '30%' : '0'}`};
6363
${(p) => (p.vertical ? 'width' : 'height')}: 2px;
64+
6465
transform: ${(p) => (p.vertical ? 'translateY(50%)' : 'translateX(50%)')};
6566
content: '';
6667
transition: 0.2s;
@@ -101,9 +102,9 @@ export const TabPanel: Component<
101102
!unmount()
102103
? css`
103104
position: ${local.show ? 'static' : 'fixed'};
104-
transform: translateY(${local.show ? '0' : '100%'});
105105
opacity: ${local.show ? '1' : '0'};
106106
pointer-events: ${local.show ? 'auto' : 'none'};
107+
transform: translateY(${local.show ? '0' : '100%'});
107108
transition: none;
108109
`
109110
: '',

src/web/pages/general/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ export const General = () => {
9191
<div
9292
class={css`
9393
display: grid;
94+
gap: 1rem;
9495
grid-template-columns: 64px 1fr;
9596
grid-template-rows: 100%;
96-
gap: 1rem;
9797
9898
svg {
99-
height: 64px;
10099
width: 64px;
100+
height: 64px;
101101
}
102102
`}
103103
>

0 commit comments

Comments
 (0)