Skip to content

Commit

Permalink
Fix blocks spacing by hiding empty input frames
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox committed Jul 5, 2020
1 parent 1e95b0a commit 56b5bc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/js/components/InputFrame.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="input" :class="textfieldClasses" v-show="isCurrentLocale" :hidden="!isCurrentLocale ? true : null">
<div class="input" :class="textfieldClasses" v-show="isCurrentLocale" :hidden="!isCurrentLocale ? true : null">
<label class="input__label" :for="labelFor || name" v-if="label">
{{ label }}<span class="input__required" v-if="required">*</span>
<span class="input__lang" v-if="hasLocale && languages.length > 1" @click="onClickLocale" data-tooltip-title="Switch language" v-tooltip>{{ displayedLocale }}</span>
Expand Down Expand Up @@ -49,6 +49,10 @@
position: relative;
}
.input:empty {
display:none;
}
.input__add {
position:absolute;
top:0;
Expand Down

0 comments on commit 56b5bc2

Please sign in to comment.