fix(i18n): tighten RTL locale follow-up
This commit is contained in:
@@ -342,7 +342,7 @@ const FolderSelectionView: Component<FolderSelectionViewProps> = (props) => {
|
||||
class="w-full max-w-5xl h-full px-4 sm:px-8 pb-2 flex flex-col overflow-hidden"
|
||||
aria-busy={isLoading() ? "true" : "false"}
|
||||
>
|
||||
<div class="absolute top-4 left-6">
|
||||
<div class="absolute top-4" style="inset-inline-start: 1.5rem;">
|
||||
<Select<LanguageOption>
|
||||
value={selectedLanguageOption()}
|
||||
onChange={(value) => {
|
||||
@@ -386,7 +386,7 @@ const FolderSelectionView: Component<FolderSelectionViewProps> = (props) => {
|
||||
</Select.Portal>
|
||||
</Select>
|
||||
</div>
|
||||
<div class="absolute top-4 right-6 flex items-center gap-2">
|
||||
<div class="absolute top-4 flex items-center gap-2" style="inset-inline-end: 1.5rem;">
|
||||
<button
|
||||
type="button"
|
||||
class="selector-button selector-button-secondary w-auto p-2 inline-flex items-center justify-center"
|
||||
|
||||
@@ -210,11 +210,6 @@ export const I18nProvider: ParentComponent = (props) => {
|
||||
document.documentElement.lang = activeLocale
|
||||
})
|
||||
|
||||
const RTL_LOCALES = new Set<Locale>(["he"])
|
||||
createEffect(() => {
|
||||
document.documentElement.dir = RTL_LOCALES.has(locale()) ? "rtl" : "ltr"
|
||||
})
|
||||
|
||||
onCleanup(() => {
|
||||
globalMessages = previousGlobalMessages
|
||||
globalLocale = previousGlobalLocale
|
||||
|
||||
@@ -114,6 +114,7 @@ export const instanceMessages = {
|
||||
"instanceShell.sessionChanges.filesChanged": "{count} files changed",
|
||||
"instanceShell.sessionChanges.actions.show": "Show changes",
|
||||
|
||||
"instanceShell.gitChanges.noSessionSelected": "Select a session to view git changes.",
|
||||
"instanceShell.gitChanges.loading": "Loading git changes...",
|
||||
"instanceShell.gitChanges.empty": "No git changes yet.",
|
||||
"instanceShell.gitChanges.deleted": "Deleted",
|
||||
@@ -126,9 +127,6 @@ export const instanceMessages = {
|
||||
"instanceShell.filesShell.viewerEmpty": "No file selected.",
|
||||
"instanceShell.filesShell.hideFiles": "Hide files",
|
||||
"instanceShell.filesShell.showFiles": "Show files",
|
||||
"instanceShell.gitChanges.noSessionSelected": "Select a session to view git changes.",
|
||||
"instanceShell.gitChanges.loading": "Loading git changes…",
|
||||
"instanceShell.gitChanges.empty": "No git changes yet.",
|
||||
"instanceShell.diff.hideUnchanged": "Hide unchanged regions",
|
||||
"instanceShell.diff.showFull": "Show full file",
|
||||
"instanceShell.diff.switchToSplit": "Switch to split view",
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
.virtual-follow-list-controls-container {
|
||||
position: absolute;
|
||||
bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
|
||||
right: var(--space-md);
|
||||
inset-inline-end: var(--space-md);
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user