Skip to content

Commit

Permalink
chore(ui): align margins and padding throughout the product (#5887)
Browse files Browse the repository at this point in the history
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
  • Loading branch information
Shivang14d04 and MilosPaunovic authored Nov 13, 2024
1 parent 5a93181 commit cfd2677
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion ui/src/components/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ $spacing: 20px;
.filters,
.dashboard {
padding: $spacing;
padding: 0 32px;
& .el-row {
width: 100%;
Expand Down Expand Up @@ -510,7 +510,12 @@ $spacing: 20px;
}
}
.dashboard {
margin: 24px 0;
}
.filters {
margin: 24px 0 0 0;
padding-bottom: 0;
& .el-row {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/flows/FlowRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
showFilters: true,
restoreurl: false,
},
containerClass: "full-container p-4"
containerClass: "container"
});
}
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/namespace/Namespace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
name: "variables",
component: "",
title: this.$t("variables"),
containerClass: "full-container",
containerClass: "container",
props: {
type: "variables",
tab: "variables",
Expand All @@ -211,7 +211,7 @@
name: "plugin-defaults",
component: "",
title: this.$t("plugin defaults"),
containerClass: "full-container",
containerClass: "container",
props: {
type: "pluginDefaults",
tab: "plugin-defaults",
Expand Down
4 changes: 2 additions & 2 deletions ui/src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ main {
}

> section.container {
margin: var(--spacer) auto 0;
margin: 24px 0;
min-width: 100%;
transition: padding 0.3s ease;
padding: 0 calc(var(--offset-from-menu));
padding: 0 32px;

&.full-height {
flex: 1;
Expand Down

0 comments on commit cfd2677

Please sign in to comment.