Skip to content

Commit

Permalink
Ellipsize long filenames and sharee names in public share page header
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
  • Loading branch information
jancborchardt committed Oct 1, 2018
1 parent e4f3098 commit b9806f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/files_sharing/css/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ thead {
font-weight: 300;
font-size: 11px;
opacity: .57;
overflow: hidden;
text-overflow: ellipsis;
}

#note-content {
Expand All @@ -186,4 +188,4 @@ thead {
}
}
}
}
}
7 changes: 6 additions & 1 deletion core/css/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
display: flex;
align-items: center;
flex-wrap: wrap;
overflow: hidden;

&:focus {
opacity: .75;
}
Expand Down Expand Up @@ -151,6 +153,7 @@
flex: 0 0;
flex-grow: 1;
white-space: nowrap;
overflow: hidden;
}

#header-right, .header-right {
Expand Down Expand Up @@ -206,14 +209,16 @@
}
}

/* show appname next to logo */
/* only used for public share pages now as we have the app icons when logged in */
.header-appname {
color: var(--color-primary-text);
font-size: 16px;
font-weight: 300;
margin: 0;
padding: 0;
padding-right: 5px;
overflow: hidden;
text-overflow: ellipsis;
}

/* do not show menu toggle on public share links as there is no menu */
Expand Down

0 comments on commit b9806f7

Please sign in to comment.