Skip to content

Commit 6c5d133

Browse files
committed
fix(frontend): migrate deprecated Tailwind v4 utility classes
- Replace flex-shrink-* with shrink-*, flex-grow-* with grow-* - Replace outline-none with outline-hidden - Replace overflow-ellipsis with text-ellipsis - Shift rounded scale to preserve v2 visual sizes: - rounded-xl → rounded-lg - rounded-lg → rounded-md - rounded-md → rounded - rounded → rounded-sm - rounded-sm → rounded-xs
1 parent 2e67710 commit 6c5d133

48 files changed

Lines changed: 88 additions & 88 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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
@@ -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 overflow-hidden shadow-lg ring-1 ring-black/10 focus:outline-none']">
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']">
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">
@@ -27,7 +27,7 @@
2727
<template v-else>
2828
<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">
2929
<component :is="item.icon" v-if="item.icon" class="w-4 inline" />
30-
<img v-if="item.imgUrl" :src="item.imgUrl" class="h-4 v-4 inline rounded mr-1">
30+
<img v-if="item.imgUrl" :src="item.imgUrl" class="h-4 v-4 inline rounded-sm mr-1">
3131
{{ item.name }}
3232
</a>
3333
</template>

frontend/src/components/ExpertButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<div v-if="!isExpertDrawerOpen" class="expert-button-wrapper flex items-center justify-center h-full px-3" style="height: 60px;">
33
<button
4-
class="expert-button flex items-center gap-1.5 justify-center rounded-md px-[9px] py-[6px] font-bold text-[0.85rem] leading-[20px] text-gray-800 whitespace-nowrap transition-colors"
4+
class="expert-button flex items-center gap-1.5 justify-center rounded px-[9px] py-[6px] font-bold text-[0.85rem] leading-[20px] text-gray-800 whitespace-nowrap transition-colors"
55
data-el="expert-button"
66
data-click-exclude="right-drawer"
77
@click="onClick"
88
>
9-
<img src="/ff-minimal-red.svg" alt="FlowFuse" class="w-5 h-5 -ml-1 mr-0.5 flex-shrink-0">
9+
<img src="/ff-minimal-red.svg" alt="FlowFuse" class="w-5 h-5 -ml-1 mr-0.5 shrink-0">
1010
<span>Expert</span>
1111
</button>
1212
</div>

frontend/src/components/SectionTopMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
</div>
1313
<div v-if="info" class="hidden sm:block text-gray-400 info truncate text-sm">{{ info }}</div>
1414
</div>
15-
<div class="actions flex-shrink-0">
15+
<div class="actions shrink-0">
1616
<ul v-if="options.length > 0" class="flex">
1717
<li v-for="item in options" :key="item.name" class="mr-8 pt-1 flex">
1818
<router-link :to="item.path" class="forge-nav-item" active-class="forge-nav-item-active" :data-nav="`section-${item.name.toLowerCase()}`">{{ item.name }}</router-link>
1919
</li>
2020
</ul>
21-
<ul v-if="hasTools" class="flex-shrink-0">
21+
<ul v-if="hasTools" class="shrink-0">
2222
<li class="w-full md:w-auto flex-grow text-right">
2323
<slot name="tools" />
2424
</li>

frontend/src/components/charts/DeviceStatusBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@click="selected(b, bucket.devices)"
2424
>
2525
<div>{{ bucket.devices.length }}</div>
26-
<label class="truncate overflow-ellipsis">{{ bucket.label }}</label>
26+
<label class="truncate text-ellipsis">{{ bucket.label }}</label>
2727
</div>
2828
</div>
2929
</div>

frontend/src/components/dialogs/AssetCompareDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
</div>
2929
<div v-if="changes.length" class="flex justify-between items-center gap-2 mt-2 ml-2">
3030
<div class="whitespace-nowrap">Change {{ changeIndex + 1 }} of {{ changes.length }}:</div>
31-
<div class="text-sm text-gray-500 flex-grow truncate overflow-ellipsis">
31+
<div class="text-sm text-gray-500 flex-grow truncate text-ellipsis">
3232
{{ changes[changeIndex].toString() }}
3333
</div>
3434
<ff-button kind="secondary" size="small" class="w-14" @click="gotoPreviousDifference">Prev</ff-button>
3535
<ff-button kind="secondary" size="small" class="w-14" @click="gotoNextDifference">Next</ff-button>
3636
</div>
3737
<div v-else class="mt-2">
38-
<div class="text-sm text-gray-500 flex-grow truncate overflow-ellipsis ml-2">No differences found</div>
38+
<div class="text-sm text-gray-500 flex-grow truncate text-ellipsis ml-2">No differences found</div>
3939
</div>
4040
<div ref="compareViewer" data-el="ff-flow-compare-view" class="ff-flow-compare-viewer pt-4" @click.stop.prevent>
4141
&nbsp;

frontend/src/components/expert/ExpertChatInput.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ button {
171171
width: 0.75rem; // w-3
172172
height: 0.75rem; // h-3
173173
background-color: #1F2937; // gray-800
174-
border-radius: 0.125rem; // rounded-sm
174+
border-radius: 0.125rem; // rounded-xs
175175
}
176176
177177
&:hover {
@@ -184,7 +184,7 @@ button {
184184
height: 6rem; // h-24
185185
padding: 1rem; // p-4
186186
border: 2px solid #D1D5DB; // border-2 border-gray-300
187-
border-radius: 0.5rem; // rounded-lg
187+
border-radius: 0.5rem; // rounded-md
188188
font-size: 0.875rem; // text-sm
189189
line-height: 1.5;
190190
color: #111827; // text-gray-900

frontend/src/components/multi-step-forms/instance/steps/flows-step/ImportFlowsSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<template #input>
3535
<div class="flow-input-wrapper w-full relative">
3636
<textarea
37-
v-model="rawFlows" class="rounded-md w-full"
37+
v-model="rawFlows" class="rounded w-full"
3838
:class="{'has-content': rawFlows}"
3939
/>
4040
<ff-button

frontend/src/components/pipelines/PipelineRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<Transition name="fade">
3737
<ChevronRightIcon
3838
v-if="$index <= pipeline.stages.length - 2 || ($index == pipeline.stages.length - 1 && addStageAvailable)"
39-
class="ff-icon mt-4 flex-shrink-0"
39+
class="ff-icon mt-4 shrink-0"
4040
:class="{
4141
'animate-deploying': nextStageDeploying($index),
4242
'ff-disabled': !nextStageAvailable(stage, $index)

frontend/src/components/tables/cells/TeamCell.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="flex align-center cursor-pointer" @click="goToTeam">
3-
<div class="flex flex-col justify-center"><img class="rounded-md mr-3 w-6 inline" :src="avatar"></div>
3+
<div class="flex flex-col justify-center"><img class="rounded mr-3 w-6 inline" :src="avatar"></div>
44
<div class="inline-flex flex-col">
55
<div>{{ name }}</div>
66
<div v-if="id" class="text-xs text-gray-400">{{ id }}</div>

0 commit comments

Comments
 (0)