style updates
This commit is contained in:
parent
d5c75915e6
commit
ace8295c03
7 changed files with 50 additions and 11 deletions
|
|
@ -678,7 +678,8 @@ option {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-flow: row dense;
|
grid-auto-flow: row dense;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
|
||||||
|
grid-gap: 0.5em;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,10 @@ const FrontendsTab = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
...SharedComputedObject(),
|
||||||
frontends () {
|
frontends () {
|
||||||
return this.$store.state.adminSettings.frontends
|
return this.$store.state.adminSettings.frontends
|
||||||
},
|
}
|
||||||
...SharedComputedObject()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
canInstall (frontend) {
|
canInstall (frontend) {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,24 @@
|
||||||
.frontends-tab {
|
.FrontendsTab {
|
||||||
.cards-list {
|
.cards-list {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li.frontend-card {
|
||||||
|
display: flex;
|
||||||
|
margin: 0;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frontend-buttons {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
display: flex;
|
||||||
|
justify-content: end;
|
||||||
|
gap: 0.5em;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex: 1 0 auto;
|
||||||
|
align-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
.relative {
|
.relative {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
@ -16,10 +32,26 @@
|
||||||
inset: 0;
|
inset: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.15em
|
||||||
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
max-width: 10em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="frontends-tab"
|
class="FrontendsTab"
|
||||||
:label="$t('admin_dash.tabs.frontends')"
|
:label="$t('admin_dash.tabs.frontends')"
|
||||||
>
|
>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
|
|
@ -42,9 +42,10 @@
|
||||||
<ul class="cards-list">
|
<ul class="cards-list">
|
||||||
<li
|
<li
|
||||||
v-for="frontend in frontends"
|
v-for="frontend in frontends"
|
||||||
|
class="frontend-card"
|
||||||
:key="frontend.name"
|
:key="frontend.name"
|
||||||
>
|
>
|
||||||
<strong>{{ frontend.name }}</strong>
|
<h5>{{ frontend.name }}</h5>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<span v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name">
|
<span v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name">
|
||||||
<i18n-t
|
<i18n-t
|
||||||
|
|
@ -89,7 +90,7 @@
|
||||||
>{{ frontend.build_url }}</a>
|
>{{ frontend.build_url }}</a>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div>
|
<div class="frontend-buttons">
|
||||||
<span class="btn-group">
|
<span class="btn-group">
|
||||||
<button
|
<button
|
||||||
class="button button-default btn"
|
class="button button-default btn"
|
||||||
|
|
|
||||||
|
|
@ -159,10 +159,10 @@ export default {
|
||||||
|
|
||||||
const wrapperClasses = ['tab-content-wrapper', active ? '-active' : '-hidden' ]
|
const wrapperClasses = ['tab-content-wrapper', active ? '-active' : '-hidden' ]
|
||||||
const contentClasses = ['tab-content']
|
const contentClasses = ['tab-content']
|
||||||
if (props['full-width']) {
|
if (props['full-width'] || props['full-width'] === '') {
|
||||||
contentClasses.push('-full-width')
|
contentClasses.push('-full-width')
|
||||||
}
|
}
|
||||||
if (props['full-height']) {
|
if (props['full-height'] || props['full-width'] === '') {
|
||||||
contentClasses.push('-full-height')
|
contentClasses.push('-full-height')
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
width: 40em;
|
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setting-item > p {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.setting-list,
|
.setting-list,
|
||||||
.option-list {
|
.option-list {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@
|
||||||
:label="$t('admin_dash.tabs.emoji')"
|
:label="$t('admin_dash.tabs.emoji')"
|
||||||
icon="face-smile-beam"
|
icon="face-smile-beam"
|
||||||
data-tab-name="emoji"
|
data-tab-name="emoji"
|
||||||
|
full-width
|
||||||
>
|
>
|
||||||
<EmojiTab />
|
<EmojiTab />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -77,6 +78,7 @@
|
||||||
:label="$t('admin_dash.tabs.frontends')"
|
:label="$t('admin_dash.tabs.frontends')"
|
||||||
icon="laptop-code"
|
icon="laptop-code"
|
||||||
data-tab-name="frontends"
|
data-tab-name="frontends"
|
||||||
|
full-width
|
||||||
>
|
>
|
||||||
<FrontendsTab />
|
<FrontendsTab />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue