Skip to content

AI-native design editor. Open-source Figma alternative.

Fix horizontal scrollbar on right panel, style scrollbars for Tauri

Danila Poyarkovc40c6c78a811
diff --git a/src/app.css b/src/app.css
index cf8dcde9d..8deed8c91 100644
--- a/src/app.css
+++ b/src/app.css
@@ -41,6 +41,29 @@ body {
-webkit-user-select: none;
}
+* {
+ scrollbar-width: thin;
+ scrollbar-color: var(--color-border) transparent;
+}
+
+::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+}
+
+::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+::-webkit-scrollbar-thumb {
+ background: var(--color-border);
+ border-radius: 3px;
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background: var(--color-muted);
+}
+
input[type='number'] {
appearance: textfield;
-moz-appearance: textfield;
diff --git a/src/components/DesignPanel.vue b/src/components/DesignPanel.vue
index 195c69066..40da75a18 100644
--- a/src/components/DesignPanel.vue
+++ b/src/components/DesignPanel.vue
@@ -28,7 +28,7 @@ const isComponentType = computed(() => {
<template>
<!-- Multi-select summary -->
- <div v-if="multiCount > 1" class="flex-1 overflow-y-auto pb-4">
+ <div v-if="multiCount > 1" class="flex-1 overflow-x-hidden overflow-y-auto pb-4">
<div class="flex items-center gap-1.5 border-b border-border px-3 py-2">
<span class="text-[11px] text-muted">Mixed</span>
<span class="text-xs font-semibold">{{ multiCount }} layers</span>
@@ -41,7 +41,7 @@ const isComponentType = computed(() => {
</div>
<!-- Single selection -->
- <div v-else-if="node" class="flex-1 overflow-y-auto pb-4">
+ <div v-else-if="node" class="flex-1 overflow-x-hidden overflow-y-auto pb-4">
<!-- Node header -->
<div class="flex items-center gap-1.5 border-b border-border px-3 py-2">
<span class="text-[11px]" :class="isComponentType ? 'text-[#9747ff]' : 'text-muted'">{{
@@ -80,7 +80,7 @@ const isComponentType = computed(() => {
<ExportSection />
</div>
- <div v-else class="flex-1 overflow-y-auto pb-4">
+ <div v-else class="flex-1 overflow-x-hidden overflow-y-auto pb-4">
<PageSection />
<VariablesSection @open-dialog="variablesOpen = true" />
</div>