Refactor maxWidth to CSS variable

- Update GlobalExecutionsList.vue
- Update PageViewLayout.vue
- Define --content-container-width
- Update ProjectSettings.vue
- Update TemplatesView.vue
This commit is contained in:
Oleg Ivaniv 2024-11-12 11:28:23 +01:00
parent 69f859b9ea
commit 49bd5c6acc
No known key found for this signature in database
5 changed files with 6 additions and 5 deletions

View file

@ -459,8 +459,8 @@ async function onAutoRefreshToggle(value: boolean) {
position: relative; position: relative;
height: 100%; height: 100%;
width: 100%; width: 100%;
max-width: 1280px;
padding: var(--spacing-l) var(--spacing-2xl) 0; padding: var(--spacing-l) var(--spacing-2xl) 0;
max-width: var(--content-container-width);
} }
.execList { .execList {

View file

@ -13,7 +13,7 @@
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
width: 100%; width: 100%;
max-width: 1280px; max-width: var(--content-container-width);
box-sizing: border-box; box-sizing: border-box;
align-content: start; align-content: start;
padding: var(--spacing-l) var(--spacing-2xl) 0; padding: var(--spacing-l) var(--spacing-2xl) 0;

View file

@ -4,6 +4,7 @@
:root { :root {
// Using native css variable enables us to use this value in JS // Using native css variable enables us to use this value in JS
--header-height: 65; --header-height: 65;
--content-container-width: 1280px;
} }
.clickable { .clickable {

View file

@ -400,7 +400,7 @@ onMounted(() => {
form { form {
width: 100%; width: 100%;
max-width: 1280px; max-width: var(--content-container-width);
padding: 0 var(--spacing-2xl); padding: 0 var(--spacing-2xl);
fieldset { fieldset {
@ -417,7 +417,7 @@ onMounted(() => {
.header { .header {
width: 100%; width: 100%;
max-width: 1280px; max-width: var(--content-container-width);
padding: var(--spacing-l) var(--spacing-2xl) 0; padding: var(--spacing-l) var(--spacing-2xl) 0;
} }

View file

@ -30,7 +30,7 @@ withDefaults(defineProps<Props>(), {
.template { .template {
display: flex; display: flex;
width: 100%; width: 100%;
max-width: 1280px; max-width: var(--content-container-width);
padding: var(--spacing-l) var(--spacing-l) 0; padding: var(--spacing-l) var(--spacing-l) 0;
justify-content: center; justify-content: center;
@media (min-width: 1200px) { @media (min-width: 1200px) {