Skip to content

Commit 1d71faf

Browse files
committed
Shift shadow and rounded scales to preserve v2 visual sizes
1 parent 6211d31 commit 1d71faf

27 files changed

Lines changed: 47 additions & 47 deletions

File tree

frontend/src/components/CodeSnippet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<pre class="overflow-auto text-xs font-light p-4 border rounded bg-gray-800 text-gray-200"><slot /></pre>
2+
<pre class="overflow-auto text-xs font-light p-4 border rounded-sm bg-gray-800 text-gray-200"><slot /></pre>
33
</template>
44

55
<script>

frontend/src/components/DropdownMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<MenuItems
2121
v-if="open"
2222
ref="menu-items"
23-
class="z-1000 fixed bg-white rounded overflow-hidden shadow-lg ring-1 ring-black/10 focus:outline-hidden"
23+
class="z-1000 fixed bg-white rounded-sm overflow-hidden shadow-lg ring-1 ring-black/10 focus:outline-hidden"
2424
:style="teleportedStyle"
2525
>
2626
<div class="apx-1 apy-1">
@@ -38,7 +38,7 @@
3838
<template v-else>
3939
<a :class="[active ? 'bg-gray-200' : '', item.selected? 'bg-gray-100':'', 'block px-4 py-2 text-sm text-gray-700',...(item.class||[])]" :data-action="`menu-${item.name.toLowerCase()}`" @click="item.action">
4040
<component :is="item.icon" v-if="item.icon" class="w-4 inline" />
41-
<img v-if="item.imgUrl" :src="item.imgUrl" class="h-4 v-4 inline rounded mr-1">
41+
<img v-if="item.imgUrl" :src="item.imgUrl" class="h-4 v-4 inline rounded-sm mr-1">
4242
{{ item.name }}
4343
</a>
4444
</template>

frontend/src/components/dialogs/AssetCompareDialog.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<button
1919
v-if="hasCompared"
2020
v-ff-tooltip:left="'Simple view hides changes to node positions'"
21-
class="text-xs px-2 py-1 rounded border font-medium shrink-0"
21+
class="text-xs px-2 py-1 rounded-sm border font-medium shrink-0"
2222
:class="hidePositionChanges
2323
? 'bg-blue-50 border-blue-300 text-blue-700'
2424
: 'border-gray-300 text-gray-600 hover:bg-gray-50'"
@@ -36,19 +36,19 @@
3636
<!-- Navigation bar — shown after comparison -->
3737
<div v-if="hasCompared && !loading" class="flex items-center gap-2 px-3 py-1.5 border-b border-gray-200 bg-white shrink-0">
3838
<div v-if="currentGroup" class="flex-1 flex items-center gap-2 min-w-0">
39-
<span class="text-xs font-semibold px-1.5 py-0.5 rounded capitalize shrink-0" :class="diffTypeBadgeClass(currentGroup.diffType)">{{ currentGroup.diffType }}</span>
39+
<span class="text-xs font-semibold px-1.5 py-0.5 rounded-sm capitalize shrink-0" :class="diffTypeBadgeClass(currentGroup.diffType)">{{ currentGroup.diffType }}</span>
4040
<span class="font-semibold text-sm text-gray-800 truncate">{{ currentGroup.name }}</span>
41-
<span class="text-xs font-semibold text-gray-700 bg-gray-200 px-1.5 py-0.5 rounded shrink-0">{{ currentGroup.type }}</span>
42-
<span v-if="currentGroupCategoryLabel" class="text-xs font-semibold text-purple-600 bg-purple-50 px-1.5 py-0.5 rounded shrink-0">{{ currentGroupCategoryLabel }}</span>
43-
<span v-if="currentGroupTabMove" class="text-xs text-amber-600 bg-amber-50 px-1.5 py-0.5 rounded shrink-0">
41+
<span class="text-xs font-semibold text-gray-700 bg-gray-200 px-1.5 py-0.5 rounded-sm shrink-0">{{ currentGroup.type }}</span>
42+
<span v-if="currentGroupCategoryLabel" class="text-xs font-semibold text-purple-600 bg-purple-50 px-1.5 py-0.5 rounded-sm shrink-0">{{ currentGroupCategoryLabel }}</span>
43+
<span v-if="currentGroupTabMove" class="text-xs text-amber-600 bg-amber-50 px-1.5 py-0.5 rounded-sm shrink-0">
4444
{{ currentGroupTabMove.from }} → {{ currentGroupTabMove.to }}
4545
</span>
4646
</div>
4747
<div v-else class="flex-1 text-sm text-gray-400 text-center">No differences found</div>
4848
<!-- Prev / counter / Next grouped so the two buttons are adjacent -->
4949
<div class="flex items-center gap-1 shrink-0">
5050
<button
51-
class="px-2 py-0.5 text-sm rounded border border-gray-200 text-gray-500 hover:bg-gray-50 disabled:opacity-30 disabled:cursor-not-allowed"
51+
class="px-2 py-0.5 text-sm rounded-sm border border-gray-200 text-gray-500 hover:bg-gray-50 disabled:opacity-30 disabled:cursor-not-allowed"
5252
:disabled="currentGroupIndex === 0"
5353
title="Previous change (←)"
5454
@click="navigate(-1)"
@@ -57,7 +57,7 @@
5757
</button>
5858
<span class="text-xs text-gray-400 px-1">{{ groupedChanges.length ? `${currentGroupIndex + 1} / ${groupedChanges.length}` : '0' }}</span>
5959
<button
60-
class="px-2 py-0.5 text-sm rounded border border-gray-200 text-gray-500 hover:bg-gray-50 disabled:opacity-30 disabled:cursor-not-allowed"
60+
class="px-2 py-0.5 text-sm rounded-sm border border-gray-200 text-gray-500 hover:bg-gray-50 disabled:opacity-30 disabled:cursor-not-allowed"
6161
:disabled="currentGroupIndex >= groupedChanges.length - 1"
6262
title="Next change (→)"
6363
@click="navigate(1)"

frontend/src/components/dialogs/SnapshotDiffChangePanel.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<span v-else-if="seg.type === 'sep'" class="text-gray-300">|</span>
1010
<span
1111
v-else
12-
class="px-1.5 py-0.5 rounded font-mono"
12+
class="px-1.5 py-0.5 rounded-sm font-mono"
1313
:class="{
1414
'bg-red-50 text-red-700 line-through': seg.kind === 'removed',
1515
'bg-green-50 text-green-700': seg.kind === 'added',
@@ -42,20 +42,20 @@
4242
<!-- Wrap toggle (shown when any line exceeds 50 chars) -->
4343
<button
4444
v-if="hasLongLines"
45-
class="text-gray-400 hover:text-gray-600 px-1 py-0.5 rounded hover:bg-gray-200"
45+
class="text-gray-400 hover:text-gray-600 px-1 py-0.5 rounded-sm hover:bg-gray-200"
4646
title="Toggle word wrap"
4747
@click.stop="wrapped = !wrapped"
4848
>Wrap</button>
4949
<!-- Prettify button (shown when value looks like JSON) -->
5050
<button
5151
v-if="canPrettify && !prettified"
52-
class="text-gray-400 hover:text-gray-600 px-1 py-0.5 rounded hover:bg-gray-200"
52+
class="text-gray-400 hover:text-gray-600 px-1 py-0.5 rounded-sm hover:bg-gray-200"
5353
title="Pretty-print JSON and re-diff"
5454
@click.stop="prettify"
5555
>Prettify</button>
5656
<button
5757
v-if="prettified"
58-
class="text-blue-500 hover:text-blue-700 px-1 py-0.5 rounded hover:bg-blue-50"
58+
class="text-blue-500 hover:text-blue-700 px-1 py-0.5 rounded-sm hover:bg-blue-50"
5959
title="Show raw values"
6060
@click.stop="unprettify"
6161
>Raw</button>

frontend/src/components/drawers/RightDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export default {
482482
position: relative; // Changed from initial to relative for resize bar positioning
483483
height: 100%;
484484
top: 0; // Reset top offset to prevent gap at top
485-
box-shadow: none; // Remove shadow when pinned
485+
box-shadow: none; // Remove shadow-sm when pinned
486486
flex-shrink: 0; // Prevent flex from shrinking the drawer below its set width
487487
min-width: unset; // Remove responsive min-width constraint
488488
max-width: none; // Remove responsive max-width constraint

frontend/src/components/expert/components/ExpertChatInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ button {
287287
width: 0.75rem; // w-3
288288
height: 0.75rem; // h-3
289289
background-color: #1F2937; // gray-800
290-
border-radius: 0.125rem; // rounded-sm
290+
border-radius: 0.125rem; // rounded-xs
291291
}
292292
293293
&:hover {

frontend/src/components/expert/components/messages/components/resource-cards/FlowResourceCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<streamable-content v-model="flowTitle" :should-stream="shouldStream" />
2121
</div>
2222
<div class="flex items-start gap-2 shrink-0 -mt-1">
23-
<button class="text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 flex items-center transition-colors duration-200 rounded px-2 py-1" @click="flowsExpanded = !flowsExpanded">
23+
<button class="text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 flex items-center transition-colors duration-200 rounded-sm px-2 py-1" @click="flowsExpanded = !flowsExpanded">
2424
<span>Preview</span>
2525
<chevron-down-icon v-if="flowsExpanded" class="h-4 w-4" />
2626
<chevron-up-icon v-if="!flowsExpanded" class="h-4 w-4" />

frontend/src/components/variant-selector/OptionTileSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<li
99
v-for="option in options"
1010
:key="option.id"
11-
class="ff-option-tile p-4 border rounded bg-white border-gray-200 cursor-pointer flex items-center justify-center gap-2"
11+
class="ff-option-tile p-4 border rounded-sm bg-white border-gray-200 cursor-pointer flex items-center justify-center gap-2"
1212
:class="{ 'border-blue-600': modelValue === option.id }"
1313
@click="$emit('update:modelValue', option.id)"
1414
>

frontend/src/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
/* .forge-block {
1414
@apply bg-white;
15-
@apply shadow;
16-
@apply rounded;
15+
@apply shadow-sm;
16+
@apply rounded-sm;
1717
@apply mx-2;
1818
@apply sm:mx-4;
1919
@apply py-6;
@@ -336,7 +336,7 @@
336336
.uneditable {
337337
@apply text-sm;
338338
@apply appearance-none;
339-
@apply rounded;
339+
@apply rounded-sm;
340340
@apply relative;
341341
@apply font-normal;
342342
@apply px-2;

frontend/src/pages/account/Security/dialogs/MFASetupDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010
<div class="text-center mt-4">
1111
<template v-if="!!qrcode">
12-
<img v-if="!!qrcode" :src="qrcode" class="m-auto border rounded">
12+
<img v-if="!!qrcode" :src="qrcode" class="m-auto border rounded-sm">
1313
<p>
1414
<a class="cursor-pointer" @click="showSecret()">Can't scan QR code?</a>
1515
</p>

0 commit comments

Comments
 (0)