Skip to content

Commit d786b59

Browse files
Merge pull request #1638 from music-assistant/list-refacto
Refacto list icon size and gap with text
2 parents d934774 + 114b00b commit d786b59

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

src/components/ListItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const { listItemProps, listItemClasses } = useListItem(props);
6868
}
6969
7070
.list-item-main :deep(.v-list-item__content > div) {
71-
padding-left: 10px;
71+
padding-left: 4px;
7272
padding-right: 10px;
7373
}
7474

src/views/settings/Providers.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,11 @@ const getAllFilteredProviders = function () {
655655
}
656656
657657
.providers-list :deep(.v-list-item__prepend) {
658-
margin-right: 4px;
658+
padding-inline-end: 6px;
659659
}
660660
661661
.providers-list :deep(.v-list-item__content > div) {
662-
padding-left: 4px;
662+
padding-left: 0;
663663
}
664664
665665
.provider-name-title {

src/views/settings/Settings.vue

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,8 @@ const documentationUrl = computed(() => {
10281028
}
10291029
10301030
.setting-list-icon {
1031-
width: 48px;
1032-
height: 48px;
1031+
width: 40px;
1032+
height: 40px;
10331033
border-radius: 12px;
10341034
display: flex;
10351035
align-items: center;
@@ -1039,15 +1039,15 @@ const documentationUrl = computed(() => {
10391039
}
10401040
10411041
.settings-list-item :deep(.v-list-item__prepend) {
1042-
margin-right: 4px;
1042+
padding-inline-end: 6px;
10431043
}
10441044
10451045
.settings-list-item :deep(.v-list-item__prepend .v-icon) {
10461046
margin-inline-end: 0 !important;
10471047
}
10481048
10491049
.settings-list-item :deep(.v-list-item__content > div) {
1050-
padding-left: 4px;
1050+
padding-left: 0;
10511051
}
10521052
10531053
.settings-list-item :deep(.v-list-item-title) {
@@ -1105,12 +1105,6 @@ const documentationUrl = computed(() => {
11051105
min-height: 72px;
11061106
}
11071107
1108-
.setting-list-icon {
1109-
width: 40px;
1110-
height: 40px;
1111-
margin-right: 12px;
1112-
}
1113-
11141108
.settings-list-item :deep(.v-list-item-title) {
11151109
font-size: 1rem;
11161110
}
@@ -1139,12 +1133,6 @@ const documentationUrl = computed(() => {
11391133
min-height: 72px;
11401134
}
11411135
1142-
.setting-list-icon {
1143-
width: 40px;
1144-
height: 40px;
1145-
margin-right: 12px;
1146-
}
1147-
11481136
.settings-list-item :deep(.v-list-item-title) {
11491137
font-size: 1rem;
11501138
}

src/views/settings/SystemConfig.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,16 @@ onMounted(async () => {
260260
background-color: rgba(var(--v-theme-on-surface), 0.05);
261261
}
262262
263+
.settings-list-item :deep(.v-list-item__prepend) {
264+
padding-inline-end: 6px;
265+
}
266+
263267
.settings-list-item :deep(.v-list-item__prepend .v-icon) {
264268
margin-inline-end: 0 !important;
265269
}
266270
267271
.settings-list-item :deep(.v-list-item__content > div) {
268-
padding-left: 4px;
272+
padding-left: 0;
269273
}
270274
271275
.settings-list-item :deep(.v-list-item-title) {
@@ -291,8 +295,8 @@ onMounted(async () => {
291295
}
292296
293297
.setting-list-icon {
294-
width: 48px;
295-
height: 48px;
298+
width: 40px;
299+
height: 40px;
296300
border-radius: 12px;
297301
display: flex;
298302
align-items: center;

0 commit comments

Comments
 (0)