mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2025-01-18 18:36:02 +01:00
added setting for user info compactness
This commit is contained in:
parent
c902219997
commit
85001814a2
7 changed files with 39 additions and 8 deletions
|
@ -164,6 +164,11 @@
|
||||||
{{ $t('settings.center_align_bio') }}
|
{{ $t('settings.center_align_bio') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="compactUserInfo">
|
||||||
|
{{ $t('settings.compact_user_info') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="stopGifs">
|
<BooleanSetting path="stopGifs">
|
||||||
{{ $t('settings.stop_gifs') }}
|
{{ $t('settings.stop_gifs') }}
|
||||||
|
|
|
@ -117,6 +117,9 @@ export default {
|
||||||
shouldConfirmMute () {
|
shouldConfirmMute () {
|
||||||
return this.mergedConfig.modalOnMute
|
return this.mergedConfig.modalOnMute
|
||||||
},
|
},
|
||||||
|
compactUserInfo () {
|
||||||
|
return this.$store.getters.mergedConfig.compactUserInfo
|
||||||
|
},
|
||||||
...mapGetters(['mergedConfig'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -22,8 +22,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-buttons {
|
.user-buttons {
|
||||||
|
grid-area: edit;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: .5em 0 .5em 0;
|
padding: .5em 0 .5em 0;
|
||||||
|
justify-self: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-body {
|
.panel-body {
|
||||||
|
@ -105,9 +107,12 @@
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding: 16px 0 6px;
|
padding: 16px 0 6px;
|
||||||
display: flex;
|
display: grid;
|
||||||
align-items: flex-start;
|
grid-template-areas:
|
||||||
max-height: 56px;
|
"pfp summary edit"
|
||||||
|
"stats stats stats";
|
||||||
|
grid-template-columns: auto 1fr auto;
|
||||||
|
align-items: start;
|
||||||
|
|
||||||
.Avatar {
|
.Avatar {
|
||||||
--_avatarShadowBox: var(--avatarShadow);
|
--_avatarShadowBox: var(--avatarShadow);
|
||||||
|
@ -122,6 +127,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&-avatar-link {
|
&-avatar-link {
|
||||||
|
grid-area: pfp;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
@ -164,6 +170,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-summary {
|
.user-summary {
|
||||||
|
grid-area: summary;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"name name name name name"
|
"name name name name name"
|
||||||
|
@ -217,18 +224,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-counts {
|
.user-counts {
|
||||||
|
grid-area: stats;
|
||||||
display: flex;
|
display: flex;
|
||||||
line-height:16px;
|
line-height:16px;
|
||||||
padding: 0 1.5em 0 1.5em;
|
padding-top: 0.5em;
|
||||||
margin: 0 auto;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
justify-content: space-between;
|
justify-content: space-around;
|
||||||
color: $fallback--lightText;
|
color: $fallback--lightText;
|
||||||
color: var(--lightText, $fallback--lightText);
|
color: var(--lightText, $fallback--lightText);
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
||||||
.user-count {
|
.user-count {
|
||||||
flex: 1 0 auto;
|
|
||||||
padding: .5em 0 .5em 0;
|
padding: .5em 0 .5em 0;
|
||||||
margin: 0 .5em;
|
margin: 0 .5em;
|
||||||
|
|
||||||
|
@ -315,6 +321,17 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.-compact {
|
||||||
|
.container {
|
||||||
|
grid-template-areas: "pfp summary stats edit";
|
||||||
|
grid-template-columns: auto auto 1fr auto;
|
||||||
|
}
|
||||||
|
.user-counts {
|
||||||
|
padding-top: 0;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .edit-profile-button {
|
.sidebar .edit-profile-button {
|
||||||
|
|
|
@ -9,7 +9,10 @@
|
||||||
class="background-image"
|
class="background-image"
|
||||||
/>
|
/>
|
||||||
<div class="panel-heading -flexible-height">
|
<div class="panel-heading -flexible-height">
|
||||||
<div class="user-info">
|
<div
|
||||||
|
class="user-info"
|
||||||
|
:class="{ '-compact': this.compactUserInfo }"
|
||||||
|
>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a
|
<a
|
||||||
v-if="allowZoomingAvatar"
|
v-if="allowZoomingAvatar"
|
||||||
|
|
|
@ -497,6 +497,7 @@
|
||||||
"checkboxRadius": "Auswahlfelder",
|
"checkboxRadius": "Auswahlfelder",
|
||||||
"collapse_subject": "Beiträge mit Inhaltswarnungen einklappen",
|
"collapse_subject": "Beiträge mit Inhaltswarnungen einklappen",
|
||||||
"columns": "Spalten",
|
"columns": "Spalten",
|
||||||
|
"compact_user_info": "Kompakte Benutzerinfos",
|
||||||
"composing": "Verfassen",
|
"composing": "Verfassen",
|
||||||
"confirm_dialogs": "Bestätigung erforderlich für:",
|
"confirm_dialogs": "Bestätigung erforderlich für:",
|
||||||
"confirm_dialogs_approve_follow": "Annehmen einer Followanfrage",
|
"confirm_dialogs_approve_follow": "Annehmen einer Followanfrage",
|
||||||
|
|
|
@ -503,6 +503,7 @@
|
||||||
"checkboxRadius": "Checkboxes",
|
"checkboxRadius": "Checkboxes",
|
||||||
"collapse_subject": "Collapse posts with content warnings",
|
"collapse_subject": "Collapse posts with content warnings",
|
||||||
"columns": "Columns",
|
"columns": "Columns",
|
||||||
|
"compact_user_info": "Compact user info",
|
||||||
"composing": "Composing",
|
"composing": "Composing",
|
||||||
"confirm_dialogs": "Require confirmation for:",
|
"confirm_dialogs": "Require confirmation for:",
|
||||||
"confirm_dialogs_approve_follow": "Accepting a follow request",
|
"confirm_dialogs_approve_follow": "Accepting a follow request",
|
||||||
|
|
|
@ -57,6 +57,7 @@ export const defaultState = {
|
||||||
pauseOnUnfocused: true,
|
pauseOnUnfocused: true,
|
||||||
displayPageBackgrounds: true,
|
displayPageBackgrounds: true,
|
||||||
centerAlignBio: false,
|
centerAlignBio: false,
|
||||||
|
compactUserInfo: true,
|
||||||
stopGifs: undefined,
|
stopGifs: undefined,
|
||||||
replyVisibility: 'all',
|
replyVisibility: 'all',
|
||||||
thirdColumnMode: 'notifications',
|
thirdColumnMode: 'notifications',
|
||||||
|
|
Loading…
Reference in a new issue