Page MenuHomePhorge

D10237.1767372758.diff
No OneTemporary

Size
722 B
Referenced Files
None
Subscribers
None

D10237.1767372758.diff

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

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)

Event Timeline