详情属性(EXIF)模块增加左右边距并对齐,标题截断,禁止侧栏横向溢出

This commit is contained in:
gallery
2026-11-15 22:35:56 +08:00
parent 97317545bc
commit 5ea5cd9e1d
3 changed files with 4 additions and 3 deletions
@@ -9,7 +9,8 @@ import { mediaCaption } from '../../../helpers/mediaCaption'
import { DateTime } from 'luxon'
const MetadataInfoContainer = styled.div`
margin-bottom: 1.5rem;
/* Align the properties rows with the other sidebar sections */
margin: 0 1rem 1.5rem;
`
type ExifDetailsProps = {
+1 -1
View File
@@ -109,7 +109,7 @@ export const Sidebar = () => {
/>
)}
<div
className={`fixed top-16 bg-white dark:bg-dark-bg2 dark:border-dark-border2 bottom-0 w-full overflow-y-auto transform transition-transform motion-reduce:transition-none ${
className={`fixed top-16 bg-white dark:bg-dark-bg2 dark:border-dark-border2 bottom-0 w-full overflow-y-auto overflow-x-hidden transform transition-transform motion-reduce:transition-none ${
content == null && !pinned ? 'translate-x-full' : 'translate-x-0'
} ${
pinned ? 'lg:border-l' : 'lg:shadow-separator'
+1 -1
View File
@@ -23,7 +23,7 @@ const SidebarHeader = ({ title }: SidebarHeaderProps) => {
>
<CloseIcon className="m-2 text-[#1F2021] dark:text-[#abadaf]" />
</button>
<span className="flex-grow -mt-1 ml-2">{title}</span>
<span className="flex-grow -mt-1 ml-2 min-w-0 truncate">{title}</span>
<button
className="hidden lg:block"
title="Pin sidebar"