Skip to content

Commit 0f3e4ed

Browse files
committed
style: Buttons
1 parent 55f2938 commit 0f3e4ed

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

src/components/TopMenuSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
v-tooltip.bottom="queueHistoryTooltipConfig"
2525
type="transparent"
2626
size="sm"
27-
class="relative mr-2 text-muted-foreground transition-colors duration-200 ease-in-out hover:bg-secondary-background-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-background"
27+
class="relative mr-2 text-base-foreground transition-colors duration-200 ease-in-out bg-secondary-background hover:bg-secondary-background-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-background"
2828
:aria-pressed="isQueueOverlayExpanded"
2929
:aria-label="
3030
t('sideToolbar.queueProgressOverlay.expandCollapsedQueue')
@@ -46,7 +46,7 @@
4646
v-tooltip.bottom="rightSidePanelTooltipConfig"
4747
type="transparent"
4848
size="sm"
49-
class="mr-2 text-muted-foreground transition-colors duration-200 ease-in-out hover:bg-secondary-background-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-background"
49+
class="mr-2 text-base-foreground transition-colors duration-200 ease-in-out bg-secondary-background hover:bg-secondary-background-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-background"
5050
:aria-label="t('rightSidePanel.togglePanel')"
5151
@click="rightSidePanelStore.togglePanel"
5252
>

src/components/rightSidePanel/RightSidePanel.vue

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ watchEffect(() => {
8686
</script>
8787

8888
<template>
89-
<div class="flex h-full w-full flex-col bg-interface-panel-surface">
89+
<div class="flex size-full flex-col bg-interface-panel-surface">
9090
<!-- Panel Header -->
91-
<div class="border-b border-interface-stroke pt-1">
91+
<section class="border-b border-interface-stroke pt-1">
9292
<div class="flex items-center justify-between pl-4 pr-3">
9393
<h3 class="my-3.5 text-sm font-semibold line-clamp-2">
9494
{{ panelTitle }}
@@ -99,7 +99,7 @@ watchEffect(() => {
9999
v-if="isSubgraphNode"
100100
type="transparent"
101101
size="sm"
102-
class="bg-secondary-background hover:bg-secondary-background-hover"
102+
class="bg-secondary-background hover:bg-secondary-background-hover text-base-foreground"
103103
:class="
104104
cn(
105105
'bg-secondary-background hover:bg-secondary-background-hover',
@@ -115,16 +115,16 @@ watchEffect(() => {
115115
<IconButton
116116
type="transparent"
117117
size="sm"
118-
class="bg-secondary-background hover:bg-secondary-background-hover"
118+
class="bg-secondary-background hover:bg-secondary-background-hover text-base-foreground"
119119
:aria-pressed="rightSidePanelStore.isOpen"
120120
:aria-label="t('rightSidePanel.togglePanel')"
121121
@click="closePanel"
122122
>
123-
<i class="icon-[lucide--panel-right]" />
123+
<i class="icon-[lucide--panel-right] size-4" />
124124
</IconButton>
125125
</div>
126126
</div>
127-
<div
127+
<nav
128128
v-if="hasSelection && !(isSubgraphNode && isEditingSubgraph)"
129129
class="px-4 pb-2 pt-1"
130130
>
@@ -138,23 +138,21 @@ watchEffect(() => {
138138
{{ tab.label() }}
139139
</Tab>
140140
</TabList>
141-
</div>
142-
</div>
141+
</nav>
142+
</section>
143143

144144
<!-- Panel Content -->
145145
<div class="scrollbar-thin flex-1 overflow-y-auto">
146-
<SubgraphEditor
147-
v-if="isSubgraphNode && isEditingSubgraph"
148-
:node="selectedNode"
149-
/>
150146
<div
151-
v-else-if="!hasSelection"
152-
class="flex h-full items-center justify-center text-center"
147+
v-if="!hasSelection"
148+
class="flex size-full p-4 items-start justify-start text-sm text-muted-foreground"
153149
>
154-
<div class="px-4 text-sm text-base-foreground-muted">
155-
{{ $t('rightSidePanel.noSelection') }}
156-
</div>
150+
{{ $t('rightSidePanel.noSelection') }}
157151
</div>
152+
<SubgraphEditor
153+
v-else-if="isSubgraphNode && isEditingSubgraph"
154+
:node="selectedNode"
155+
/>
158156
<template v-else>
159157
<TabParameters
160158
v-if="activeTab === 'parameters'"

0 commit comments

Comments
 (0)