Skip to content

Commit

Permalink
fix: previewer title overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Nov 4, 2020
1 parent e119bc5 commit 4e48ffc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/files/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
<i class="material-icons">close</i>
</button>

<div class="title">
<span>{{ this.name }}</span>
</div>
<div class="title">{{ this.name }}</div>

<preview-size-button v-if="isResizeEnabled && this.req.type === 'image'" @change-size="toggleSize" v-bind:size="fullSize" :disabled="loading"></preview-size-button>
<button @click="openMore" id="more" :aria-label="$t('buttons.more')" :title="$t('buttons.more')" class="action">
Expand Down
17 changes: 9 additions & 8 deletions frontend/src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,23 @@

#previewer .bar {
width: 100%;
text-align: right;
display: flex;
padding: 0.5em;
height: 3.7em;
}

#previewer .bar > * {
flex: 0 0 auto;
}

#previewer .bar .title {
margin-right: auto;
display: block;
flex: 1 1 auto;
padding: 0 1em;
line-height: 2.7em;
line-height: 2.3em;
overflow: hidden;
word-break: break-word;
text-overflow: ellipsis;
font-size: 1.2em;
color: #fff;
}

Expand Down Expand Up @@ -220,10 +225,6 @@
word-break: break-word;
}

#previewer .title span {
font-size: 1.2em;
}

#previewer .loading {
height: 100%;
width: 100%;
Expand Down

0 comments on commit 4e48ffc

Please sign in to comment.