Fix settings styling

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2020-01-23 23:03:04 +01:00
parent 3369597ca0
commit 7342c39fbe
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 40 additions and 32 deletions

View file

@ -186,30 +186,43 @@
*/
#app-settings-content {
.icon {
margin-top: -3px;
}
li {
line-height: 3em;
display: flex;
height: 40px;
label {
white-space: nowrap;
padding-right: 10px;
}
align-items: center;
height: 44px;
&.headline {
font-weight: bold;
line-height: 50px;
}
.label-container {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
float: left;
&.collection {
.icon {
display: flex;
align-items: center;
flex: 0 0 44px;
justify-content: center;
width: 44px;
height: 44px;
background-size: 16px 16px;
background-image: unset;
margin-left: -10px;
&::before {
content: '';
width: 16px;
height: 16px;
background: var(--icon-tasks-bw-000) no-repeat;
background-position: inherit;
}
}
.label-container {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: flex;
align-items: center;
}
}
select {
@ -217,14 +230,12 @@
text-overflow: ellipsis;
margin-left: auto;
}
}
}
#app-settings .label-container span.icon {
font-size: 7px;
font-weight: bold;
line-height: 21px;
text-align: center;
label {
white-space: nowrap;
padding-right: 10px;
}
}
}
/**

View file

@ -38,17 +38,14 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
{{ $t('tasks', 'Visibility of Smart Collections') }}
</li>
<li v-for="collection in collections"
:key="collection.id">
<div class="label-container">
<span :class="collection.icon" class="icon icon-bw">
<span v-if="collection.id=='today'">
{{ dayOfMonth }}
</span>
</span>
:key="collection.id"
class="collection">
<div :class="collection.icon" class="icon" />
<span class="label-container">
<label :for="'visibilityCollection-' + collection.id" class="title">
{{ collection.displayName }}
</label>
</div>
</span>
<select :id="'visibilityCollection-' + collection.id"
:value="collection.show"
@change="setVisibility({ id: collection.id, show: +$event.target.value })">