Skip to content

A platform for community discussion. Free, open, simple.

Prevent timestamp modal calendar from overflowing container

Krisd00118382832
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index 8fd78de4689..50941f56afc 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -402,3 +402,27 @@
margin-right: 0.5em;
}
}
+
+
+.change-timestamp {
+
+ .date-picker {
+ width: 10em;
+ }
+
+ #date-container {
+ .pika-single {
+ position: relative !important; // overriding another important
+ display: inline-block;
+ }
+ }
+
+ input[type=time] {
+ width: 6em;
+ }
+
+ form {
+ margin: 0;
+ }
+ }
+
\ No newline at end of file
diff --git a/app/assets/stylesheets/desktop/modal.scss b/app/assets/stylesheets/desktop/modal.scss
index d9504971101..5b35ce44ddd 100644
--- a/app/assets/stylesheets/desktop/modal.scss
+++ b/app/assets/stylesheets/desktop/modal.scss
@@ -211,19 +211,3 @@
max-height: 150px;
margin-bottom: 10px;
}
-
-.change-timestamp {
- min-height: 300px;
-
- .date-picker {
- width: 10em;
- }
-
- input[type=time] {
- width: 6em;
- }
-
- form {
- margin: 0;
- }
-}