chore: refs #8019 refactor css scoped
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-10-07 13:36:27 +02:00
parent d88fadca55
commit d1b3e01d87
2 changed files with 37 additions and 1 deletions

View File

@ -9,3 +9,39 @@ const model = defineModel({ type: [String, Number], required: true });
:options="$attrs.options" :options="$attrs.options"
/> />
</template> </template>
<style lang="scss" scoped>
.q-date {
width: 240px;
min-width: none;
:deep(.q-date__calendar) {
padding-bottom: 0;
}
:deep(.q-date__view) {
min-height: 240px;
padding: 8px;
}
:deep(.q-date__calendar-days-container) {
min-height: 160px;
height: unset;
}
}
.q-date--portrait-standard :deep(.q-date__header) {
padding: 2px 2px 5px 12px;
height: 60px;
}
@media (min-width: $breakpoint-xs-max) {
.q-date--landscape-standard {
min-width: 280px;
:deep(.q-date__header) {
min-width: 0;
padding: 10px 8px 0 8px;
}
}
.q-date--landscape-standard :deep(.q-date__view) {
width: 220px;
}
}
</style>

View File

@ -58,7 +58,7 @@ defineExpose({
:class="{ zoomIn: zoom }" :class="{ zoomIn: zoom }"
:src="getUrl()" :src="getUrl()"
v-bind="$attrs" v-bind="$attrs"
@click.stop="show = $props.zoom ? true : false" @click.stop="show = $props.zoom"
spinner-color="primary" spinner-color="primary"
/> />
<QDialog v-if="$props.zoom" v-model="show"> <QDialog v-if="$props.zoom" v-model="show">