Skip to content

Commit 83d5c3f

Browse files
committed
fix(frontend): shift shadow scale to preserve v2 visual sizes
- shadow-lg → shadow-md - shadow-md → shadow - shadow-sm → shadow-xs - shadow (bare) → shadow-sm - drop-shadow-md → drop-shadow
1 parent 6c5d133 commit 83d5c3f

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

frontend/src/components/DropdownMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
leave-from-class="transform scale-100 opacity-100"
1616
leave-to-class="transform scale-95 opacity-0"
1717
>
18-
<MenuItems :class="[edge === 'left' ? 'left-0 origin-top-left' : 'right-0 origin-top-right','z-50 absolute w-56 mt-1 bg-white divide-y divide-gray-100 rounded-sm overflow-hidden shadow-lg ring-1 ring-black/10 focus:outline-hidden']">
18+
<MenuItems :class="[edge === 'left' ? 'left-0 origin-top-left' : 'right-0 origin-top-right','z-50 absolute w-56 mt-1 bg-white divide-y divide-gray-100 rounded-sm overflow-hidden shadow-md ring-1 ring-black/10 focus:outline-hidden']">
1919
<div class="apx-1 apy-1">
2020
<MenuItem v-for="(item, $index) in options" v-slot="{ active }" :key="$index" :disabled="!item || item.disabled == true ? true : false">
2121
<template v-if="item == null">

frontend/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@layer base {
1717
/* .forge-block {
1818
@apply bg-white;
19-
@apply shadow;
19+
@apply shadow-sm;
2020
@apply rounded-sm;
2121
@apply mx-2;
2222
@apply sm:mx-4;

frontend/src/pages/application/Snapshots/components/cells/SnapshotName.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Description
1111
</summary>
1212
<div
13-
class="whitespace-pre-line absolute border drop-shadow-md rounded-sm bg-white p-2 z-10"
13+
class="whitespace-pre-line absolute border drop-shadow rounded-sm bg-white p-2 z-10"
1414
style="max-width: 300px;"
1515
>
1616
{{ description }}

frontend/src/pages/team/Brokers/Hierarchy/components/suggestions/TopicSuggestion.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default {
9393
}
9494
},
9595
template: `
96-
<div class="p-4 border border-indigo-100 bg-indigo-50 rounded shadow-sm overflow-auto text-indigo-600" style="max-height: 70vh;">
96+
<div class="p-4 border border-indigo-100 bg-indigo-50 rounded shadow-xs overflow-auto text-indigo-600" style="max-height: 70vh;">
9797
<object-properties :properties="properties"/>
9898
</div>`
9999
})

frontend/src/ui-components/components/Popover.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PopoverPanel
1919
v-if="open"
2020
v-slot="{ close }"
21-
class="absolute w-full overflow-auto bg-white border border-gray-200 rounded shadow-md z-[200]"
21+
class="absolute w-full overflow-auto bg-white border border-gray-200 rounded shadow z-[200]"
2222
:style="{
2323
top: position.top + 10 + 'px',
2424
left: position.left + 'px',

frontend/src/ui-components/components/tabs/Tabs.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ChevronLeftIcon class="ff-icon" />
66
<ChevronLeftIcon class="ff-icon ff-icon-second" />
77
</MenuButton>
8-
<MenuItems class="z-50 absolute left-0 top-full origin-top-left mt-1 max-h-96 overflow-y-auto bg-white divide-y divide-gray-100 rounded-sm shadow-lg ring-1 ring-black/10 focus:outline-hidden" style="max-width: min(14rem, calc(100vw - 1rem)); width: 14rem;">
8+
<MenuItems class="z-50 absolute left-0 top-full origin-top-left mt-1 max-h-96 overflow-y-auto bg-white divide-y divide-gray-100 rounded-sm shadow-md ring-1 ring-black/10 focus:outline-hidden" style="max-width: min(14rem, calc(100vw - 1rem)); width: 14rem;">
99
<MenuItem
1010
v-for="tab in hiddenLeftTabs"
1111
:key="'left-' + tab.label"
@@ -54,7 +54,7 @@
5454
<ChevronRightIcon class="ff-icon ff-icon-second" />
5555
</MenuButton>
5656
<Teleport to="body">
57-
<MenuItems class="z-50 fixed origin-top-left max-h-96 overflow-y-auto bg-white divide-y divide-gray-100 rounded-sm shadow-lg ring-1 ring-black/10 focus:outline-hidden" :style="rightMenuStyle">
57+
<MenuItems class="z-50 fixed origin-top-left max-h-96 overflow-y-auto bg-white divide-y divide-gray-100 rounded-sm shadow-md ring-1 ring-black/10 focus:outline-hidden" :style="rightMenuStyle">
5858
<MenuItem
5959
v-for="tab in hiddenRightTabs"
6060
:key="'right-' + tab.label"

0 commit comments

Comments
 (0)