Skip to content

Commit 10c1686

Browse files
committed
fix(popup-ui): align file/folder names horizontally
Resolved UI issue in Select file or folder to link to popup where file/folder names appeared below icons. Updated styling so names are suppressed horizontally for consistent layout.
1 parent f9b638f commit 10c1686

1 file changed

Lines changed: 210 additions & 0 deletions

File tree

css/layouts/guestview.scss

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787

8888
.dialog__navigation.file-picker__navigation .file-picker__filter-input {
8989
max-width: 100%;
90+
margin: 0;
9091
}
9192

9293
button.action-item.files-list__row-action-sharing-popup {
@@ -219,4 +220,213 @@
219220
#request-password-button-not-talk {
220221
display: none;
221222
}
223+
}
224+
225+
#body-public .modal-container {
226+
.dialog__name {
227+
font-size: 1.5rem;
228+
height: unset;
229+
line-height: 1.5rem;
230+
margin-bottom: 1.5rem;
231+
min-height: unset;
232+
text-align: left;
233+
}
234+
235+
.file-picker {
236+
height: min(80vh, 800px) !important;
237+
238+
.dialog__wrapper {
239+
margin-block: 0 1.5rem;
240+
padding-inline: 0;
241+
overflow: visible;
242+
.dialog__content {
243+
margin-top: 1rem;
244+
padding: 0;
245+
}
246+
}
247+
&__navigation {
248+
display: block;
249+
padding: 0;
250+
overflow: visible;
251+
.input-field {
252+
&__input {
253+
padding-left: 2.5rem;
254+
}
255+
&__icon--leading {
256+
bottom: 8px;
257+
}
258+
}
259+
}
260+
&__filter-input {
261+
margin-block: 7px;
262+
}
263+
264+
&__main {
265+
box-sizing: border-box;
266+
width: 100%;
267+
display: flex;
268+
flex-direction: column;
269+
min-height: 0;
270+
flex: 1;
271+
padding-inline: 2px;
272+
}
273+
274+
&__breadcrumbs {
275+
flex-grow: 0 !important;
276+
}
277+
278+
&__files {
279+
overflow: auto;
280+
margin: 0;
281+
282+
table {
283+
width: 100%;
284+
max-height: 100%;
285+
table-layout: fixed;
286+
}
287+
288+
th:not(.row-size) .button-vue__wrapper {
289+
flex-direction: row-reverse;
290+
}
291+
thead th {
292+
background-color: var(--color-main-background);
293+
border-bottom: 1px solid var(--color-border) !important;
294+
295+
position: sticky;
296+
z-index: 1;
297+
top: 0;
298+
padding: 2px;
299+
300+
&.row-name {
301+
width: 230px;
302+
}
303+
304+
.header-wrapper {
305+
display: flex;
306+
}
307+
308+
.button-vue {
309+
border: none;
310+
margin: 0;
311+
padding: 0;
312+
313+
cursor: pointer;
314+
315+
.button-vue__wrapper{
316+
justify-content: start;
317+
color: var(--color-text-maxcontrast);
318+
319+
display: inline-flex;
320+
align-items: center;
321+
width: 100%;
322+
}
323+
324+
&__text {
325+
margin-bottom: 1px;
326+
padding: 2px 0;
327+
white-space: nowrap;
328+
text-overflow: ellipsis;
329+
overflow: hidden;
330+
font-weight: 400;
331+
}
332+
333+
&__icon {
334+
min-width: 20px;
335+
width: 20px;
336+
}
337+
}
338+
339+
.button-vue:hover:not(:disabled) {
340+
background-color: unset;
341+
border-color: unset;
342+
color: unset;
343+
}
344+
345+
&.row-size {
346+
width: 100px;
347+
.button-vue__wrapper {
348+
justify-content: end !important;
349+
}
350+
}
351+
&.row-modified {
352+
width: 120px;
353+
.button-vue__wrapper {
354+
justify-content: end !important;
355+
flex-direction: row;
356+
}
357+
span.button-vue__text {
358+
padding-right: 8px;
359+
}
360+
}
361+
}
362+
363+
tbody tr {
364+
height: 60px;
365+
}
366+
367+
tbody tr:not(.group-header):hover {
368+
background-color: var(--color-background-hover);
369+
}
370+
371+
td {
372+
border-bottom: 1px solid var(--color-border) !important;
373+
cursor: pointer;
374+
overflow: hidden;
375+
text-overflow: ellipsis;
376+
377+
&.row-name {
378+
padding-inline: 2px 0;
379+
padding: 0;
380+
381+
.file-picker__name-container {
382+
cursor: pointer;
383+
display: flex;
384+
justify-content: start;
385+
align-items: center;
386+
height: 100%;
387+
388+
div{
389+
cursor: pointer;
390+
min-height: 44px;
391+
min-width: 44px;
392+
line-height: 44px;
393+
394+
&.file-picker__file-name {
395+
padding-left: .5rem;
396+
overflow: hidden;
397+
text-overflow: ellipsis;
398+
}
399+
400+
svg {
401+
color: var(--nmc-ods-blue-active);
402+
height: 44px;
403+
width: 44px;
404+
}
405+
}
406+
}
407+
}
408+
409+
&.row-size {
410+
text-align: right;
411+
padding-inline: 0 14px;
412+
}
413+
414+
&.row-modified {
415+
text-align: right;
416+
padding-inline: 14px 0;
417+
418+
span {
419+
cursor: pointer;
420+
padding-right: 8px;
421+
}
422+
}
423+
}
424+
}
425+
426+
&__header-preview {
427+
width: 52px;
428+
height: 32px;
429+
flex: 0 0 auto;
430+
}
431+
}
222432
}

0 commit comments

Comments
 (0)