Merge pull request #30336 from quentinguidee/refine-dashboard-customize

Refine dashboard edit widget design
pull/31639/head
Simon L 2022-03-21 23:15:18 +07:00 committed by GitHub
commit b314a13e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 8 deletions

@ -34,7 +34,7 @@
@keyup.space="showModal">{{ t('dashboard', 'Customize') }}</a>
</div>
<Modal v-if="modal" size="normal" @close="closeModal">
<Modal v-if="modal" size="large" @close="closeModal">
<div class="modal__content">
<h3>{{ t('dashboard', 'Edit widgets') }}</h3>
<ol class="panels">
@ -564,22 +564,32 @@ export default {
}
li {
label {
position: relative;
display: block;
padding: 48px 8px 16px 8px;
padding: 48px 16px 14px 16px;
margin: 8px;
width: 160px;
width: 140px;
background-color: var(--color-background-hover);
border: 2px solid var(--color-main-background);
border-radius: var(--border-radius-large);
background-size: 24px;
background-position: center 16px;
text-align: center;
background-position: 16px 16px;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:hover {
border-color: var(--color-primary);
}
}
input[type='checkbox'].checkbox + label:before {
position: absolute;
right: 12px;
top: 16px;
}
input:focus + label {
border-color: var(--color-primary);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long