File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed
packages/frontend-main/src Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ function handleInputValidity(value: boolean) {
6969 <Username :user-address =" reply.author" />
7070 <PrettyTimestamp :timestamp =" new Date(reply.timestamp)" />
7171 </div >
72- <!-- clamp content width to prevent overflow -->
73- <div class =" max-w-[calc(min(512px,100dvw)-6rem)] overflow-x-auto " >
72+ <!-- clamp content width to prevent overflow. 6rem accounts for the left offset -->
73+ <div class =" max-w-[calc(min(512px,100dvw)-6rem)]" >
7474 <PostMessage :message =" reply.message" />
7575 </div >
7676 </div >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const parsedMessage = computed((): MessageSegment[] => {
6060 :href =" segment.content"
6161 target =" _blank"
6262 rel =" noopener noreferrer"
63- class =" text-blue-500 hover:underline font-medium"
63+ class =" text-blue-500 hover:underline font-medium wrap-anywhere "
6464 @click.stop =" "
6565 >
6666 {{ segment.content }}
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ const overlayStyle = computed(() => {
227227 v-bind =" forwarded"
228228 :class ="
229229 cn(
230- 'fixed right-0 bottom-[58px] left-0 z-[51]',
230+ 'fixed right-0 bottom-mobile-header left-0 z-[51]',
231231 'grid max-h-[90vh] w-full gap-4',
232232 'overflow-y-auto',
233233 'rounded-t-lg border-t border-r border-l bg-background',
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import TopPanel from './panels/TopPanel.vue';
44 </script >
55
66<template >
7- <div class =" w-full h-[58px] sticky top-0 z-99" >
7+ <div class =" w-full h-mobile-panel sticky top-0 z-99" >
88 <TopPanel />
99 </div >
1010
11- <main class =" min-h-[100vh] " >
11+ <main class =" min-h-dvh flex flex-col flex-1 " >
1212 <slot />
1313 </main >
1414
15- <div class =" w-full h-[58px] sticky bottom-0 z-99" >
15+ <div class =" w-full h-mobile-panel sticky bottom-0 z-99" >
1616 <BottomPanel />
1717 </div >
1818</template >
Original file line number Diff line number Diff line change 4141 --color-sidebar-accent-foreground : var (--sidebar-accent-foreground );
4242 --color-sidebar-border : var (--sidebar-border );
4343 --color-sidebar-ring : var (--sidebar-ring );
44+ --height-mobile-panel : var (--mobile-panel-height );
4445}
4546
4647: root {
7879 --sidebar-border : oklch (0.922 0 0 );
7980 --sidebar-ring : oklch (0.708 0 0 );
8081 --main-min-width-desktop : 640px ;
82+ --mobile-panel-height : 58px ;
8183 --text-2xl : 2rem ; /* 32px */
8284 --text-xl : 1.6875rem ; /* 27px */
8385 --text-lg : 1.5rem ; /* 24px */
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function handleActionClick(url: string) {
3838
3939<template >
4040 <MainLayout >
41- <div class =" flex flex-col h-full " >
41+ <div class =" flex flex-col h-[calc(100dvh-2*var(--mobile-panel-height))] " >
4242 <ViewHeading :title =" $t('components.Headings.about')" />
4343
4444 <div class =" flex flex-col flex-1" >
You can’t perform that action at this time.
0 commit comments