Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32566087
D10237.1767372758.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D10237.1767372758.diff
View Options
diff --git a/web/modals/modal.css b/web/modals/modal.css
--- a/web/modals/modal.css
+++ b/web/modals/modal.css
@@ -79,3 +79,7 @@
.primaryButtonContainer > button {
width: 100%;
}
+
+.emptyButtonContainerOffset {
+ height: 8px;
+}
diff --git a/web/modals/modal.react.js b/web/modals/modal.react.js
--- a/web/modals/modal.react.js
+++ b/web/modals/modal.react.js
@@ -102,7 +102,9 @@
const buttonContainer = React.useMemo(() => {
if (!primaryButton) {
- return null;
+ // for empty modals we should add a bottom offset to match the height
+ // of the padding at the top of the modal
+ return <div className={css.emptyButtonContainerOffset} />;
}
const className = classNames(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 2, 4:52 PM (13 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5877055
Default Alt Text
D10237.1767372758.diff (722 B)
Attached To
Mode
D10237: [web] match the veritcal padding for modals with no button containers
Attached
Detach File
Event Timeline
Log In to Comment