-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dashboard and Alert headers with the Query one #4710
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
aaaa197
Dashboard header adjustments
gabrieldutra ff6665c
Adjust Query header top margin and cleanup css
gabrieldutra 371c21b
Alert Header adjustments
gabrieldutra beac8fe
Update Cypress tests
gabrieldutra f8b905d
Add margin between alert title and controls
gabrieldutra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,45 @@ | ||
.alert-page h3 { | ||
flex-grow: 1; | ||
input { | ||
margin: -0.2em 0; | ||
width: 100%; | ||
min-width: 170px; | ||
} | ||
flex-grow: 1; | ||
|
||
input { | ||
margin: -0.2em 0; | ||
width: 100%; | ||
min-width: 170px; | ||
} | ||
} | ||
|
||
.btn-create-alert[disabled] { | ||
display: block; | ||
margin-top: -20px; | ||
display: block; | ||
margin-top: -20px; | ||
} | ||
|
||
.alert-state { | ||
border-bottom: 1px solid @input-border; | ||
padding-bottom: 30px; | ||
|
||
.alert-state-indicator { | ||
text-transform: uppercase; | ||
font-size: 14px; | ||
padding: 5px 8px; | ||
} | ||
|
||
.alert-last-triggered { | ||
color: @headings-color; | ||
} | ||
border-bottom: 1px solid @input-border; | ||
padding-bottom: 30px; | ||
|
||
.alert-state-indicator { | ||
text-transform: uppercase; | ||
font-size: 14px; | ||
padding: 5px 8px; | ||
} | ||
|
||
.alert-last-triggered { | ||
color: @headings-color; | ||
} | ||
} | ||
|
||
.alert-query-selector { | ||
min-width: 250px; | ||
width: auto !important; | ||
min-width: 250px; | ||
width: auto !important; | ||
} | ||
|
||
// allow form item labels to gracefully break line | ||
.alert-form-item label { | ||
white-space: initial; | ||
padding-right: 8px; | ||
line-height: 21px; | ||
white-space: initial; | ||
padding-right: 8px; | ||
line-height: 21px; | ||
|
||
&::after { | ||
margin-right: 0 !important; | ||
} | ||
&::after { | ||
margin-right: 0 !important; | ||
} | ||
} | ||
|
||
.alert-actions { | ||
flex-grow: 1; | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
margin-right: -15px; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,23 +122,6 @@ body.fixed-layout { | |
} | ||
} | ||
|
||
.page-header--query { | ||
.page-title { | ||
display: block; | ||
} | ||
|
||
.tags-control a { | ||
opacity: 0; | ||
transition: opacity 0.2s ease-in-out; | ||
} | ||
|
||
&:hover { | ||
.tags-control a { | ||
opacity: 1; | ||
} | ||
} | ||
} | ||
|
||
Comment on lines
-125
to
-141
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not used anymore. |
||
a.label-tag { | ||
background: fade(@redash-gray, 15%); | ||
color: darken(@redash-gray, 15%); | ||
|
@@ -517,12 +500,3 @@ nav .rg-bottom { | |
padding-right: 0; | ||
} | ||
} | ||
|
||
// Responsive fixes | ||
@media (max-width: 767px) { | ||
.query-page-wrapper { | ||
h3 { | ||
font-size: 18px; | ||
} | ||
} | ||
} | ||
Comment on lines
-521
to
-528
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.alert-header { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
margin-bottom: 5px; | ||
|
||
& > div { | ||
padding: 5px 0; | ||
} | ||
|
||
.alert-title { | ||
flex: 1 1; | ||
|
||
h3 { | ||
margin: 0; | ||
|
||
@media (max-width: 767px) { | ||
font-size: 18px; | ||
} | ||
} | ||
} | ||
|
||
.alert-actions { | ||
display: flex; | ||
flex-wrap: nowrap; | ||
margin-right: -15px; | ||
|
||
@media (max-width: 515px) { | ||
flex-basis: 100%; | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From this file I just moved this to
Title.less
, the rest is on Prettier.