diff --git a/CHANGELOG.md b/CHANGELOG.md index c672b14cd6..507e26a312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. - Add forced display mode to poll configuration ### Changed - Updated job control for the administration + - Refactored some elements flex to grid ## [8.5.0] - 2025-10-03 ### Fixed diff --git a/src/components/Base/modules/ConfigBox.vue b/src/components/Base/modules/ConfigBox.vue index f8545cf5ae..5090c80d80 100644 --- a/src/components/Base/modules/ConfigBox.vue +++ b/src/components/Base/modules/ConfigBox.vue @@ -17,14 +17,12 @@ const { name, info = '', indented = false } = defineProps() diff --git a/src/components/Base/modules/FlexSettings.vue b/src/components/Base/modules/FlexSettings.vue index e38a366511..31240a0fd7 100644 --- a/src/components/Base/modules/FlexSettings.vue +++ b/src/components/Base/modules/FlexSettings.vue @@ -4,22 +4,15 @@ --> diff --git a/src/components/Cards/VoteInfoCards.vue b/src/components/Cards/VoteInfoCards.vue index 2a5e2b8909..1823800a79 100644 --- a/src/components/Cards/VoteInfoCards.vue +++ b/src/components/Cards/VoteInfoCards.vue @@ -78,21 +78,13 @@ const showRegisterCard = computed( diff --git a/src/components/Configuration/ConfigDangerArea.vue b/src/components/Configuration/ConfigDangerArea.vue index 593b0fe121..99cbb1b1ba 100644 --- a/src/components/Configuration/ConfigDangerArea.vue +++ b/src/components/Configuration/ConfigDangerArea.vue @@ -96,9 +96,8 @@ function routeAway() { diff --git a/src/components/Options/OptionItem.vue b/src/components/Options/OptionItem.vue index 24603ad864..ff5758034f 100644 --- a/src/components/Options/OptionItem.vue +++ b/src/components/Options/OptionItem.vue @@ -69,6 +69,7 @@ const pollStore = usePollStore() display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: 'drag option owner actions'; + align-items: center; position: relative; padding: 8px 0; background-color: var(--color-main-background); diff --git a/src/components/Options/OptionItemOwner.vue b/src/components/Options/OptionItemOwner.vue index 4732f81570..d841c80ecd 100644 --- a/src/components/Options/OptionItemOwner.vue +++ b/src/components/Options/OptionItemOwner.vue @@ -33,7 +33,7 @@ const showDelete = computed( - + { - + { + + diff --git a/src/components/User/UserItem.vue b/src/components/User/UserItem.vue index 9e90bdf9f1..6e5f2fd870 100644 --- a/src/components/User/UserItem.vue +++ b/src/components/User/UserItem.vue @@ -148,15 +148,18 @@ const componentClass = computed(() => [ } .user-item { - position: relative; - display: flex; + display: grid; + grid-template-columns: auto auto 1fr auto; align-items: center; - justify-content: space-around; - padding: 4px; - max-width: 100%; + column-gap: 8px; + margin: 8px 0; &.disabled { opacity: 0.6; } + &.condensed { + grid-template-columns: 1fr; + justify-items: center; + } } .hover-menu { @@ -176,27 +179,18 @@ const componentClass = computed(() => [ } .user-item__name { - flex: 1; - min-width: 50px; - padding-inline-start: 8px; white-space: nowrap; > div { overflow: hidden; text-overflow: ellipsis; } + .description { color: var(--color-text-maxcontrast); font-size: 0.7em; } -} -.condensed { - &.user-item { - flex-direction: column; - justify-content: center; - max-width: 70px; - } - .user-item__name { + .condensed & { font-size: 0.7em; text-align: center; width: 70px; diff --git a/src/components/VoteTable/VoteTable.vue b/src/components/VoteTable/VoteTable.vue index 7285ea8b63..d441fa1aff 100644 --- a/src/components/VoteTable/VoteTable.vue +++ b/src/components/VoteTable/VoteTable.vue @@ -192,6 +192,7 @@ function isVotable(participant: User, option: Option) { grid-auto-flow: column; overflow: scroll; margin: auto; + &.table-view > div { border-inline-start: 1px solid var(--color-border); &.participant { @@ -206,7 +207,6 @@ function isVotable(participant: User, option: Option) { .participant { grid-column: 1; - place-self: center; inset-inline-start: 0; background-color: var(--color-main-background); @@ -250,12 +250,14 @@ function isVotable(participant: User, option: Option) { grid-column: 1; inset-inline-start: 0; background-color: var(--color-main-background); + border-inline-start: none; } .option-item-spacer { grid-row: 2; grid-column: 1; inset-inline-start: 0; + border-inline-start: none; } .counter-spacer { @@ -263,6 +265,7 @@ function isVotable(participant: User, option: Option) { grid-column: 1; inset-inline-start: 0; background-color: var(--color-main-background); + border-inline-start: none; } .option-menu-grid { diff --git a/src/views/AdminSettingsPage.vue b/src/views/AdminSettingsPage.vue index 017d95fd9b..147241e94c 100644 --- a/src/views/AdminSettingsPage.vue +++ b/src/views/AdminSettingsPage.vue @@ -30,6 +30,7 @@ import AdminUnrescrictedOwners from '../components/Settings/AdminSettings/AdminU import { useAppSettingsStore } from '../stores/appSettings' import '../assets/scss/markdown.scss' +import '../assets/scss/vars.scss' const appSettingsStore = useAppSettingsStore() diff --git a/src/views/PollList.vue b/src/views/PollList.vue index 3d965d47ee..01a5473031 100644 --- a/src/views/PollList.vue +++ b/src/views/PollList.vue @@ -193,18 +193,17 @@ onMounted(() => {