ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix tables width, paginators, button on mobile / touchscreens (#2695)
Kim165ee2929bc7
diff --git a/client/src/app/+my-account/my-account.component.scss b/client/src/app/+my-account/my-account.component.scssindex d452a2b213..fd47aec860 100644--- a/client/src/app/+my-account/my-account.component.scss+++ b/client/src/app/+my-account/my-account.component.scss@@ -1,5 +1,3 @@--.row {flex-direction: column;width: 100%;diff --git a/client/src/app/shared/buttons/action-dropdown.component.html b/client/src/app/shared/buttons/action-dropdown.component.htmlindex 14cfe9a228..0efc01d380 100644--- a/client/src/app/shared/buttons/action-dropdown.component.html+++ b/client/src/app/shared/buttons/action-dropdown.component.html@@ -1,4 +1,4 @@-<div class="dropdown-root" ngbDropdown [placement]="placement" *ngIf="areActionsDisplayed(actions, entry)">+<div class="dropdown-root" ngbDropdown [placement]="placement" container="body" *ngIf="areActionsDisplayed(actions, entry)"><divclass="action-button" [ngClass]="{ small: buttonSize === 'small', grey: theme === 'grey', orange: theme === 'orange', 'button-styled': buttonStyled }"ngbDropdownToggle role="button"diff --git a/client/src/sass/application.scss b/client/src/sass/application.scssindex ab0bf0a08a..f54fecda8b 100644--- a/client/src/sass/application.scss+++ b/client/src/sass/application.scss@@ -267,7 +267,7 @@ table {top: #{-($header-height + 20px)};}-@media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) {+@media screen and (max-width: #{breakpoint(xxl)}) {.main-col {&.expanded {.margin-content {@@ -278,7 +278,7 @@ table {}}-@media screen and (max-width: #{map-get($grid-breakpoints, lg)}) {+@media screen and (max-width: #{breakpoint(lg)}) {/* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */.main-col {&, &.expanded {@@ -343,6 +343,40 @@ table {}}+// overflow-databale responsive rules+@media screen and (max-width: #{breakpoint(xxl)}) {+ .main-col {+ &.expanded {+ @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2);+ }++ &:not(.expanded) {+ @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2);+ }+ }+}++@media screen and (max-width: #{breakpoint(lg)}) {+ .main-col {+ &.expanded {+ @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3);+ }++ &:not(.expanded) {+ @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2);+ }+ }+}++@media screen and (max-width: $small-view) {+ .main-col {+ &:not(.expanded),+ &.expanded {+ @include overflow-datatable(breakpoint(lg), 15px);+ }+ }+}+@media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) {.main-col {&:not(.expanded) {diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scssindex eee3db8fca..377c85070b 100644--- a/client/src/sass/bootstrap.scss+++ b/client/src/sass/bootstrap.scss@@ -66,7 +66,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';}-@media screen and (min-width: #{map-get($grid-breakpoints, md)}) {+@media screen and (min-width: #{breakpoint(md)}) {.modal:before {vertical-align: middle;content: " ";diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scssindex d536eac866..6aa5c24745 100644--- a/client/src/sass/include/_bootstrap-variables.scss+++ b/client/src/sass/include/_bootstrap-variables.scss@@ -17,6 +17,10 @@ $grid-breakpoints: (xxl: 1600px);+@function breakpoint($label) {+ @return map-get($grid-breakpoints, $label);+}+$container-max-widths: (sm: 420px,md: 720px,diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scssindex 8444f93577..b8e685abaa 100644--- a/client/src/sass/primeng-custom.scss+++ b/client/src/sass/primeng-custom.scss@@ -80,7 +80,7 @@ p-table {my-edit-button,my-delete-button,my-button {- display: block !important;+ display: inline-block !important;}}}@@ -160,14 +160,20 @@ p-table {my-delete-button,my-button {display: none !important;+ margin-left: 5px;&.show {- display: block !important;+ display: inline-block !important;}- }- my-edit-button + my-delete-button {- margin-left: 5px;+ // keep displaying on touchscreen+ @media not all and (hover: hover) and (pointer: fine) {+ display: inline-block !important;+ }++ :first-child {+ margin-left: 0+ }}}@@ -241,7 +247,7 @@ p-table {&.focus-within,&:focus {box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest) !important;- }+ }}a {@@ -266,6 +272,33 @@ p-table {}}+// overflow data table+@mixin overflow-datatable ($table-min-width, $horizontal-margins) {+ p-table {+ .ui-table-wrapper {+ overflow-x: auto;+ max-width: calc(100vw - #{$horizontal-margins * 2});++ table {+ min-width: $table-min-width;+ }+ }++ p-paginator .ui-paginator-bottom {+ display: block;++ .ui-paginator-current {+ position: relative;+ display: block;+ }++ a, .ui-paginator-pages {+ vertical-align: middle;+ }+ }+ }+}+// multiselect customizationsp-multiselect {.ui-multiselect {