mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Enhance dashboard charts design
This commit is contained in:
1 parent
1dc9a16030
commit
f113354cb8
11 files changed
+279
-138
No files matched your search
@@ -7,6 +7,6 @@
|
||||
@import 'dashboard_widget';
|
||||
@import 'dashboard_summary_widget';
|
||||
@import 'create_widget_button';
|
||||
@import 'widget_header';
|
||||
@import 'widget';
|
||||
@import 'widget_settings_base_form';
|
||||
@import 'create_widget_modal';
|
||||
+9
-2
@@ -1,5 +1,5 @@
|
||||
.dashboard-summary-widget {
|
||||
padding: 0 24px 24px;
|
||||
// nothing
|
||||
}
|
||||
|
||||
.dashboard-summary-widget__summary {
|
||||
@@ -7,7 +7,6 @@
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
line-height: 40px;
|
||||
margin-top: 16px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -16,3 +15,11 @@
|
||||
.dashboard-summary-widget__summary--misconfigured {
|
||||
color: #cdcecf;
|
||||
}
|
||||
|
||||
.dashboard-summary-widget__loading {
|
||||
height: 120px;
|
||||
|
||||
.dashboard-summary-widget--with-header-description & {
|
||||
height: 141.8px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
.widget__header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: start;
|
||||
gap: 7px;
|
||||
padding: 20px 24px;
|
||||
border-bottom: 1px solid $palette-neutral-200;
|
||||
position: relative;
|
||||
height: auto;
|
||||
|
||||
&--no-border {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
&--edit-mode {
|
||||
padding: 20px 55px 20px 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.widget__header-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.widget__header-context-menu {
|
||||
margin-left: auto;
|
||||
width: 46px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
.widget__header-title-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.widget__header-title {
|
||||
color: $palette-neutral-1200;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.widget__header-description {
|
||||
@extend %ellipsis;
|
||||
|
||||
color: #6a6b70;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.widget__content {
|
||||
padding: 20px;
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
.widget-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: start;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.widget-header__main {
|
||||
padding-top: 24px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.widget-header__context-menu {
|
||||
flex-grow: 1;
|
||||
text-align: right;
|
||||
margin: 6px -14px 0 7px;
|
||||
width: 46px;
|
||||
}
|
||||
|
||||
.widget-header__title-wrapper {
|
||||
display: flex;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.widget-header__title {
|
||||
color: $palette-neutral-1200;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.widget-header__description {
|
||||
color: #6a6b70;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
margin-top: 8px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.widget-header__fix-configuration {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #b23f30;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
line-height: 12px;
|
||||
letter-spacing: 0.2px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 80px;
|
||||
background: #fff2f0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in new issue
Block a user