Skip to content

Commit 2184621

Browse files
fix: revert remaining shorthand CSS properties for browser compatibility
- Revert all remaining `inset:` shorthands to longhand in design-system, SidebarHelpCenterIcon, menu.css, and PackCard - Revert `flex-flow` and `place-content` to longhand in design-system
1 parent 0c0e0f8 commit 2184621

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

packages/design-system/src/css/style.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,10 @@ button.comfy-queue-btn {
746746

747747
@media only screen and (max-height: 850px) {
748748
.comfy-menu {
749-
inset: 0 0 0 auto !important;
749+
top: 0 !important;
750+
bottom: 0 !important;
751+
left: auto !important;
752+
right: 0 !important;
750753
border-radius: 0;
751754
}
752755

@@ -809,7 +812,10 @@ dialog::backdrop {
809812
}
810813

811814
.comfy-dialog.comfyui-dialog.comfy-modal {
812-
inset: 0;
815+
top: 0;
816+
left: 0;
817+
right: 0;
818+
bottom: 0;
813819
transform: none;
814820
}
815821

@@ -821,7 +827,8 @@ dialog::backdrop {
821827
}
822828

823829
.comfy-dialog .comfy-modal-content {
824-
flex-flow: row wrap;
830+
flex-direction: row;
831+
flex-wrap: wrap;
825832
gap: 10px;
826833
color: var(--fg-color);
827834
}
@@ -893,7 +900,8 @@ dialog::backdrop {
893900
overflow: hidden;
894901
display: flex;
895902
flex-wrap: wrap;
896-
place-content: flex-start center;
903+
align-content: flex-start;
904+
justify-content: center;
897905
}
898906

899907
.comfy-img-preview img {

src/components/sidebar/SidebarHelpCenterIcon.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ onMounted(async () => {
147147
<style scoped>
148148
.help-center-backdrop {
149149
position: absolute;
150-
inset: 0;
150+
top: 0;
151+
left: 0;
152+
right: 0;
153+
bottom: 0;
151154
z-index: 9999;
152155
background: transparent;
153156
}

src/scripts/ui/menu/menu.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
/* Popup */
4040
.comfyui-popup {
4141
position: absolute;
42-
inset: var(--top) var(--right) var(--bottom) var(--left);
42+
top: var(--top);
43+
right: var(--right);
44+
bottom: var(--bottom);
45+
left: var(--left);
4346
z-index: 2000;
4447
max-height: calc(100vh - var(--limit) - 10px);
4548
box-shadow: 3px 3px 5px 0 rgb(0 0 0 / 0.3);

src/workbench/extensions/manager/components/manager/packCard/PackCard.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ const formattedLatestVersionDate = computed(() => {
137137
.selected-card::after {
138138
content: '';
139139
position: absolute;
140-
inset: 0;
140+
top: 0;
141+
left: 0;
142+
right: 0;
143+
bottom: 0;
141144
border: 4px solid var(--p-primary-color);
142145
border-radius: 0.5rem;
143146
pointer-events: none;

0 commit comments

Comments
 (0)