Skip to content

Commit

Permalink
Fix select text padding on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 27, 2024
1 parent 641dca3 commit 3c83deb
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/features/shared/SelectTextModal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,29 @@
}

.sharedSelect {
padding: 8px;
width: calc(100% - 16px);

user-select: text;

margin-bottom: var(--ion-safe-area-bottom, env(safe-area-inset-bottom));
/* Override `all: unset` specificity by setting default below .invisibleTextarea */
}

.invisibleTextarea {
composes: sharedSelect;

all: unset;
white-space: pre-wrap;
width: 100%;

composes: sharedSelect;
}

.selectable {
composes: sharedSelect;

user-select: text;
white-space: pre-wrap;
}

composes: sharedSelect;
.sharedSelect {
padding: 8px;
width: calc(100% - 16px);

user-select: text;

margin-bottom: var(--ion-safe-area-bottom, env(safe-area-inset-bottom));
}

0 comments on commit 3c83deb

Please sign in to comment.