Skip to content

Commit b0b13ee

Browse files
committed
fix(frontend): complete flex-grow/flex-shrink and drop-shadow migration
- Migrate remaining flex-grow → grow in Vue templates (71 occurrences) - Migrate remaining flex-shrink → shrink in Vue templates (2 occurrences) - Shift drop-shadow → drop-shadow-sm for v2 visual parity - CSS properties in style sections preserved (flex-grow:, flex-shrink:)
1 parent 83d5c3f commit b0b13ee

53 files changed

Lines changed: 80 additions & 80 deletions

Some content is hidden

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

frontend/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<div id="ff-app" class="flex flex-col" :class="{'hidden-left-drawer': hiddenLeftDrawer}">
33
<template v-if="offline">
4-
<main class="ff-bg-dark flex-grow flex flex-col">
5-
<div class="w-full max-w-screen-2xl mx-auto my-2 sm:my-8 flex-grow flex flex-col">
4+
<main class="ff-bg-dark grow flex flex-col">
5+
<div class="w-full max-w-screen-2xl mx-auto my-2 sm:my-8 grow flex flex-col">
66
<Offline />
77
</div>
88
</main>
99
</template>
1010
<template v-else-if="pending">
11-
<main class="ff-bg-dark flex-grow flex flex-col">
12-
<div class="w-full mx-auto flex-grow flex flex-col">
11+
<main class="ff-bg-dark grow flex flex-col">
12+
<div class="w-full mx-auto grow flex flex-col">
1313
<Loading color="white" />
1414
</div>
1515
</main>

frontend/src/components/FormHeading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<h1 class="text-lg font-medium mb-2 border-b border-gray-200 flex">
3-
<div class="flex-grow"><slot /></div>
3+
<div class="grow"><slot /></div>
44
<div><slot name="tools" /></div>
55
</h1>
66
</template>

frontend/src/components/Loading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="ff-loading flex-grow flex flex-col items-center justify-center mx-auto"
3+
class="ff-loading grow flex flex-col items-center justify-center mx-auto"
44
:class="{'theme-light': color == 'black', 'theme-dark': color == 'white'}"
55
data-el="loading"
66
>

frontend/src/components/NavItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="flex w-full justify-between items-center">
44
<component v-if="icon" :is="icon" class="ff-icon transition-fade--color" />
55
<img v-if="avatar" :src="avatar" class="ff-avatar">
6-
<label class="transition-fade--color flex-grow">{{ label }}</label>
6+
<label class="transition-fade--color grow">{{ label }}</label>
77
<span v-if="featureUnavailable" data-el="premium-feature" v-ff-tooltip="'Not available in this Tier'">
88
<SparklesIcon class="ff-icon transition-fade--color hollow" style="stroke-width: 1;" />
99
</span>

frontend/src/components/Offline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex-grow flex flex-col items-center justify-center mx-auto h-92 text-gray-400">
2+
<div class="grow flex flex-col items-center justify-center mx-auto h-92 text-gray-400">
33
<div class="text-center text-white">
44
<div class="text-6xl mb-3">Oh Dear</div>
55
<div class="text-2xl">We tried phoning the server, but no-one answered.</div>

frontend/src/components/SectionNavigationHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="flex flex-wrap justify-between pb-3 gap-y-2">
44
<div class="flex-1 flex items-center md:w-auto mr-8 gap-x-2">
55
<slot name="hero">
6-
<div class="flex-grow items-center grid gap-1">
6+
<div class="grow items-center grid gap-1">
77
<div class="inline-flex flex-wrap gap-1">
88
<div v-if="!hasCustomBreadcrumbs" class="flex items-center mr-6">
99
<slot name="breadcrumbs" />

frontend/src/components/SectionTopMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="ff-section-header flex border-b border-gray-400 mb-4 sm:mb-2 text-gray-500 justify-between min-h-12">
33
<div class="w-full flex flex-nowrap justify-between mb-2 items-center gap-2">
4-
<div class="flex-shrink flex-grow flex-wrap max-w-full flex gap-x-2 items-baseline min-w-0">
4+
<div class="shrink grow flex-wrap max-w-full flex gap-x-2 items-baseline min-w-0">
55
<div class="flex gap-2 items-center">
66
<slot name="hero">
77
<div class="flex" :data-hero="hero">
@@ -19,7 +19,7 @@
1919
</li>
2020
</ul>
2121
<ul v-if="hasTools" class="shrink-0">
22-
<li class="w-full md:w-auto flex-grow text-right">
22+
<li class="w-full md:w-auto grow text-right">
2323
<slot name="tools" />
2424
</li>
2525
</ul>

frontend/src/components/dialogs/AssetCompareDialog.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<ff-dialog
33
ref="dialog" :header="header" confirm-label="Close" :closeOnConfirm="true" data-el="flow-view-dialog"
4-
boxClass="!min-w-[80%] !min-h-[80%] !w-[80%] !h-[80%]" contentClass="overflow-hidden flex-grow"
4+
boxClass="!min-w-[80%] !min-h-[80%] !w-[80%] !h-[80%]" contentClass="overflow-hidden grow"
55
@confirm="confirm()"
66
>
77
<template #default>
@@ -12,7 +12,7 @@
1212
data-el="snapshots-list"
1313
label-key="label"
1414
option-title-key="description"
15-
class="flex-grow"
15+
class="grow"
1616
/>
1717
<ff-button
1818
v-if="true"
@@ -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 text-ellipsis">
31+
<div class="text-sm text-gray-500 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 text-ellipsis ml-2">No differences found</div>
38+
<div class="text-sm text-gray-500 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/dialogs/AssetDetailDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ff-dialog
33
ref="dialog" :header="header" :sub-header="`Node-RED Version: ${nrVersion}`" confirm-label="Close" :closeOnConfirm="true"
44
data-el="flow-view-dialog" boxClass="!min-w-[80%] !min-h-[80%] !w-[80%] !h-[80%]"
5-
contentClass="overflow-hidden flex-grow" @confirm="confirm()"
5+
contentClass="overflow-hidden grow" @confirm="confirm()"
66
>
77
<template #default>
88
<div ref="viewer" data-el="ff-flow-previewer" class="ff-flow-viewer" @click.stop.prevent>

frontend/src/pages/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<main class="min-h-full">
33
<template v-if="pending">
4-
<div class="flex-grow flex flex-col items-center justify-center mx-auto text-gray-600 opacity-50">
4+
<div class="grow flex flex-col items-center justify-center mx-auto text-gray-600 opacity-50">
55
<FlowFuseLogo class="max-w-xs mx-auto w-full" />
66
</div>
77
</template>

0 commit comments

Comments
 (0)