Skip to content

Commit

Permalink
Reduce left margin of files list header
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <[email protected]>
  • Loading branch information
JuliaKirschenheuter authored and skjnldsv committed Oct 17, 2023
1 parent d261330 commit ce7f774
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- Current folder breadcrumbs -->
<BreadCrumbs :path="dir" @reload="fetchContent">
<template #actions>
<NcButton v-if="canShare"
<NcButton v-if="canShare && filesListWidth >= 512"
:aria-label="shareButtonLabel"
:class="{ 'files-list__header-share-button--shared': shareButtonType }"
:title="shareButtonLabel"
Expand Down Expand Up @@ -133,6 +133,7 @@ import FilesListVirtual from '../components/FilesListVirtual.vue'
import filesListWidthMixin from '../mixins/filesListWidth.ts'
import filesSortingMixin from '../mixins/filesSorting.ts'
import logger from '../logger.js'
import filesListWidth from '../mixins/filesListWidth.ts'

const isSharingEnabled = getCapabilities()?.files_sharing !== undefined

Expand All @@ -157,6 +158,7 @@ export default Vue.extend({
mixins: [
filesListWidthMixin,
filesSortingMixin,
filesListWidth,
],

setup() {
Expand Down Expand Up @@ -485,6 +487,7 @@ $navigationToggleSize: 50px;
flex: 0 0;
// Align with the navigation toggle icon
margin: $margin $margin $margin $navigationToggleSize;
max-width: 100%;
> * {
// Do not grow or shrink (horizontally)
// Only the breadcrumbs shrinks
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit ce7f774

Please sign in to comment.