mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Design store: revert icon row to 4-across, they already spanned full width
The 2x2 layout looked worse. flex:1 on a 4-in-a-row already makes the four buttons together fill the card's full width - that was right the first time, just needed the mismatched-glyph fix, not a layout change. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
f113dbbecb
commit
9285e50412
2 files changed
+8
-8
No files matched your search
+6
-6
@@ -3414,8 +3414,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ts-design-theme-card-actions {
|
.ts-design-theme-card-actions {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
@@ -3447,14 +3446,15 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Icon row (edit/duplicate/export/delete) - laid out 2x2 instead of 4 across
|
/* Icon row (edit/duplicate/export/delete) - side by side, flex:1 so the four
|
||||||
so each button gets the full card-half width instead of a cramped quarter. */
|
of them together always fill the card's full width. */
|
||||||
.ts-design-theme-card-actions button {
|
.ts-design-theme-card-actions button {
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 2.8rem;
|
min-height: 2.6rem;
|
||||||
padding: 0.6rem 0;
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ts-design-store-card-actions {
|
.ts-design-store-card-actions {
|
||||||
|
|||||||
+2
-2
@@ -5222,8 +5222,8 @@ function ActionIcon({ children }: { children: ReactNode }) {
|
|||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
width="22"
|
width="20"
|
||||||
height="22"
|
height="20"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
strokeWidth="2"
|
strokeWidth="2"
|
||||||
|
|||||||
Reference in new issue
Block a user