Skip to content

Commit

Permalink
fix: styles and store version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Mar 21, 2023
1 parent 2f112ec commit 76db385
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 249 deletions.
18 changes: 10 additions & 8 deletions app/components/home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
@include container();
}

.tight-container {
--window-width: 100vw;
--window-height: 100vh;
--window-content-width: calc(100% - var(--sidebar-width));
@media only screen and (min-width: 600px) {
.tight-container {
--window-width: 100vw;
--window-height: 100vh;
--window-content-width: calc(100% - var(--sidebar-width));

@include container();
@include container();

max-width: 100vw;
max-height: 100vh;
max-width: 100vw;
max-height: 100vh;

border-radius: 0;
border-radius: 0;
}
}

.sidebar {
Expand Down
26 changes: 14 additions & 12 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,6 @@ export function Settings(props: { closeSettings: () => void }) {
</select>
</ListItem>

<SettingItem title={Locale.Settings.TightBorder}>
<input
type="checkbox"
checked={config.tightBorder}
onChange={(e) =>
updateConfig(
(config) => (config.tightBorder = e.currentTarget.checked)
)
}
></input>
</SettingItem>

<SettingItem title={Locale.Settings.Lang.Name}>
<div className="">
<select
Expand All @@ -177,6 +165,20 @@ export function Settings(props: { closeSettings: () => void }) {
</select>
</div>
</SettingItem>

<div className="no-mobile">
<SettingItem title={Locale.Settings.TightBorder}>
<input
type="checkbox"
checked={config.tightBorder}
onChange={(e) =>
updateConfig(
(config) => (config.tightBorder = e.currentTarget.checked)
)
}
></input>
</SettingItem>
</div>
</List>
<List>
<SettingItem
Expand Down
1 change: 1 addition & 0 deletions app/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export const useChatStore = create<ChatStore>()(
}),
{
name: LOCAL_KEY,
version: 1,
}
)
);
6 changes: 5 additions & 1 deletion app/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
--window-content-width: var(--window-width);
--message-max-width: 100%;
}

.no-mobile {
display: none;
}
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -187,4 +191,4 @@ div.math {
display: flex;
align-items: center;
justify-content: center;
}
}
228 changes: 0 additions & 228 deletions scripts/proxychains.conf

This file was deleted.

28 changes: 28 additions & 0 deletions static/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 76db385

Please sign in to comment.