Skip to content

Commit

Permalink
fix: Adjust more places for logical position
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 20, 2024
1 parent bd708ee commit 55dd692
Show file tree
Hide file tree
Showing 37 changed files with 92 additions and 100 deletions.
5 changes: 2 additions & 3 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,10 @@ export default {
background-size: 32px;
width: 32px;
height: 32px;
margin-inline-end: 16px;
background-position: center;
float: left;
margin-top: -6px;
margin-left: 6px;
margin-top: -6px 0;
margin-inline-start: 6px 16px;
}
img {
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/src/components/AvailabilityForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ export default {
}
.to-text {
padding-right: 12px;
padding-inline-end: 12px;
}
.empty-content {
color: var(--color-text-lighter);
margin-top: 4px;
margin-block-start: var(--default-grid-baseline);
align-self: center;
}
</style>
4 changes: 2 additions & 2 deletions apps/dav/src/views/CalDavSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ export default {

<style scoped>
.indented {
padding-left: 28px;
padding-inline-start: 28px;
}
/** Use deep selector to affect v-html */
* >>> a {
* :deep(a) {
text-decoration: underline;
}
.settings-hint {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
return window.location.protocol + '//' + window.location.host + this.logoPath
},
backgroundStyle() {
return `padding:10px;background-color:${this.color};color:${this.textColor};border-radius:3px;padding-left:4px;`
return `padding:10px;background-color:${this.color};color:${this.textColor};border-radius:3px;padding-inline-start:4px;`
},
linkStyle() {
return `background-image:url(${this.logoPathAbsolute});width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;`
Expand Down
30 changes: 15 additions & 15 deletions apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@ export default defineComponent({
--clickable-area: var(--default-clickable-area);
--icon-preview-size: 32px;
--fixed-top-position: var(--default-clickable-area);
--fixed-block-start-position: var(--default-clickable-area);
overflow: auto;
height: 100%;
will-change: scroll-position;
&:has(.file-list-filters__active) {
--fixed-top-position: calc(var(--default-clickable-area) + var(--default-grid-baseline) + var(--clickable-area-small));
--fixed-block-start-position: calc(var(--default-clickable-area) + var(--default-grid-baseline) + var(--clickable-area-small));
}
& :deep() {
Expand Down Expand Up @@ -366,7 +366,7 @@ export default defineComponent({
}
.files-list__selected {
padding-right: 12px;
padding-inline-end: 12px;
white-space: nowrap;
}
Expand All @@ -375,7 +375,7 @@ export default defineComponent({
&.files-list__table--with-thead-overlay {
// Hide the table header below the overlay
margin-top: calc(-1 * var(--row-height));
margin-block-start: calc(-1 * var(--row-height));
}
}
Expand All @@ -388,16 +388,16 @@ export default defineComponent({
z-index: 10;
// fixed the size
padding-inline: var(--row-height) var(--default-grid-baseline, 4px);
height: var(--fixed-top-position);
height: var(--fixed-block-start-position);
width: 100%;
}
.files-list__thead-overlay {
// Pinned on top when scrolling
position: sticky;
top: var(--fixed-top-position);
top: var(--fixed-block-start-position);
// Save space for a row checkbox
margin-left: var(--row-height);
margin-inline-start: var(--row-height);
// More than .files-list__thead
z-index: 20;
Expand All @@ -406,7 +406,7 @@ export default defineComponent({
// Reuse row styles
background-color: var(--color-main-background);
border-bottom: 1px solid var(--color-border);
border-block-end: 1px solid var(--color-border);
height: var(--row-height);
}
Expand All @@ -424,7 +424,7 @@ export default defineComponent({
// Pinned on top when scrolling
position: sticky;
z-index: 10;
top: var(--fixed-top-position);
top: var(--fixed-block-start-position);
}
// Table footer
Expand All @@ -438,7 +438,7 @@ export default defineComponent({
align-items: center;
width: 100%;
user-select: none;
border-bottom: 1px solid var(--color-border);
border-block-end: 1px solid var(--color-border);
box-sizing: border-box;
user-select: none;
height: var(--row-height);
Expand Down Expand Up @@ -591,7 +591,7 @@ export default defineComponent({
max-width: calc(var(--icon-preview-size) * 0.5);
color: var(--color-primary-element-text);
// better alignment with the folder icon
margin-top: 2px;
margin-block-start: 2px;
// Improve icon contrast with a background for files
&--file {
Expand Down Expand Up @@ -771,8 +771,8 @@ tbody.files-list__tbody.files-list__tbody--grid {
width: 16px;
height: 16px;
position: absolute;
left: 50%;
margin-left: -8px;
inset-inline-start: 50%;
margin-inline-start: -8px;
z-index: -1;
background: var(--color-main-background);
}
Expand Down Expand Up @@ -806,7 +806,7 @@ tbody.files-list__tbody.files-list__tbody--grid {
.files-list__row-name-text {
margin: 0;
// Ensure that the outline is not too close to the text.
margin-left: -4px;
margin-inline-start: -4px;
padding: 0px 4px;
}
}
Expand All @@ -820,7 +820,7 @@ tbody.files-list__tbody.files-list__tbody--grid {
.files-list__row-actions {
position: absolute;
inset-inline-end: calc(var(--half-clickable-area) / 2);
bottom: calc(var(--mtime-height) / 2);
inset-block-end: calc(var(--mtime-height) / 2);
width: var(--clickable-area);
height: var(--clickable-area);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/views/ReferenceFileWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default defineComponent({
min-width: 88px;
max-width: 88px;
padding: 12px;
padding-right: 0;
padding-inline-end: 0;
display: flex;
align-items: center;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/actions/sharingStatusAction.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// put icon at the end of the button
direction: rtl;
// align icons with textless inline actions
padding-right: 0 !important;
padding-inline-end: 0 !important;
}

svg.sharing-status__avatar {
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/components/NewFileRequestDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export default defineComponent({
width: auto;
margin-inline: 12px;
span.dialog__actions-separator {
margin-left: auto;
margin-inline-start: auto;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/components/SharingEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
height: 44px;
&__summary {
padding: 8px;
padding-left: 10px;
padding-inline-start: 10px;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
flex-direction: column;
justify-content: space-between;
padding: 8px;
padding-left: 10px;
padding-inline-start: 10px;
line-height: 1.2em;
p {
color: var(--color-text-maxcontrast);
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ export default {
&__summary {
padding: 8px;
padding-left: 10px;
padding-inline-start: 10px;
display: flex;
justify-content: space-between;
flex: 1 0;
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/components/SharingEntrySimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
min-height: 44px;
&__desc {
padding: 8px;
padding-left: 10px;
padding-inline-start: 10px;
line-height: 1.2em;
position: relative;
flex: 1 1;
Expand Down
10 changes: 5 additions & 5 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ export default {
h1 {
font-size: 15px;
padding-left: 0.3em;
padding-inline-start: 0.3em;
}
}
Expand All @@ -1060,7 +1060,7 @@ export default {
overflow: scroll;
flex-shrink: 1;
padding: 4px;
padding-right: 12px;
padding-inline-end: 12px;
}
&__quick-permissions {
Expand Down Expand Up @@ -1117,7 +1117,7 @@ export default {
width: 100%;
margin-bottom: 0.5em;
text-align: start;
padding-left: 0;
padding-inline-start: 0;
section {
Expand All @@ -1142,14 +1142,14 @@ export default {
*/
span {
::v-deep label {
padding-left: 0 !important;
padding-inline-start: 0 !important;
background-color: initial !important;
border: none !important;
}
}
section.custom-permissions-group {
padding-left: 1.5em;
padding-inline-start: 1.5em;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/oauth2/src/components/OAuthItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ export default {
.action-column {
display: flex;
justify-content: flex-end;
padding-right: 0;
padding-inline-end: 0;
}
</style>
4 changes: 2 additions & 2 deletions apps/settings/src/components/AppList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ $toolbar-height: 44px + $toolbar-padding * 2;
}
#app-list-update-all {
margin-left: 10px;
margin-inline-start: 10px;
}
&__toolbar {
height: $toolbar-height;
padding: $toolbar-padding;
// Leave room for app-navigation-toggle
padding-left: $toolbar-height;
padding-inline-start: $toolbar-height;
width: 100%;
background-color: var(--color-main-background);
position: sticky;
Expand Down
12 changes: 5 additions & 7 deletions apps/settings/src/components/AppList/AppItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ export default {
.app-name--link::after {
content: '';
position: absolute;
left: 0;
right: 0;
inset-inline-start: 0;
inset-inline-end: 0;
height: var(--app-item-height);
}
Expand All @@ -271,7 +271,7 @@ export default {
.icon-loading-small {
display: inline-block;
top: 4px;
margin-right: 10px;
margin-inline-end: 10px;
}
}
Expand Down Expand Up @@ -317,10 +317,8 @@ export default {
.app-name--link::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
inset-block: 0;
inset-inline: 0;
}
.app-actions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ h3 {
// See padding of discover section
&--next {
right: -54px;
inset-inline-end: -54px;
}
&--previous {
left: -54px;
inset-inline-start: -54px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions apps/settings/src/components/AppStoreDiscover/PostType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ export default defineComponent({
&-wrapper {
position: relative;
top: -50%;
left: -50%;
inset-inline-start: -50%;
}
position: absolute;
top: -46px; // half of the icon height
right: -46px; // half of the icon width
inset-inline-end: -46px; // half of the icon width
}
}
Expand Down
4 changes: 2 additions & 2 deletions apps/settings/src/components/AuthTokenSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export default defineComponent({
<style lang="scss" scoped>
.app-name-text-field {
height: 44px !important;
padding-left: 12px;
margin-right: 12px;
padding-inline-start: 12px;
margin-inline-end: 12px;
width: 200px;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/src/components/AuthTokenSetupDialogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default {
.app-name-text-field {
height: 44px !important;
padding-left: 12px;
padding-inline-start: 12px;
margin-inline-end: 12px;
width: 200px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ export default {
.hint {
display: inline-block;
color: var(--color-text-maxcontrast);
margin-left: 8px;
padding-top: 5px;
margin-inline-start: 8px;
padding-block-start: 5px;
}

&-radio, &-multi_checkbox {
Expand Down
Loading

0 comments on commit 55dd692

Please sign in to comment.