Skip to content

Commit c89b562

Browse files
committed
fixed frontend crash upon filter application
1 parent e128a2a commit c89b562

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

src/components/StaticModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const StaticModal = (props: IProps) => {
2222
<Pressable
2323
style={{
2424
height: "100%",
25-
width: "100%", // @ts-ignore
25+
width: "100%",
26+
// @ts-ignore
2627
cursor: "default",
2728
}}
2829
onPress={() => props.onDismiss()}

src/containers/MainBody/ServerList/SearchBar.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,12 @@ const SearchBar = memo<SearchBarProps>(({ onChange }) => {
174174
/>
175175
{showFiltersBadge ? (
176176
<div
177-
// @ts-ignore
178-
style={[
179-
styles.badgeContainer,
180-
{
181-
filter: `drop-shadow(0 0 5px ${theme.primary}${
182-
themeType === "dark" ? "CC" : "FF"
183-
})`,
184-
},
185-
]}
177+
style={{
178+
...styles.badgeContainer,
179+
filter: `drop-shadow(0 0 5px ${theme.primary}${
180+
themeType === "dark" ? "CC" : "FF"
181+
})`,
182+
}}
186183
>
187184
<View style={[styles.badge, { backgroundColor: theme.primary }]} />
188185
</div>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default defineConfig({
7878
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
7979
envPrefix: ["VITE_", "TAURI_"],
8080
build: {
81-
chunkSizeWarningLimit: 1000,
81+
chunkSizeWarningLimit: 400,
8282
minify: !process.env.TAURI_DEBUG ? "esbuild" : false,
8383
sourcemap: !!process.env.TAURI_DEBUG,
8484
},

0 commit comments

Comments
 (0)