Skip to content

Commit e1b6239

Browse files
committed
Tighten supported version spacing on desktop and web
1 parent 675073b commit e1b6239

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

frontend/src/modules/project/components/ProjectMetaSections.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getSourceLabel = (source?: string) => {
3232
const SupportedVersionGroup = ({ group }: { group: VersionGroup }) => {
3333
const [isOpen, setIsOpen] = React.useState(false);
3434
const contentId = React.useId();
35-
const rowClass = "flex w-full min-h-8 items-center gap-2 px-2.5 py-1.5 text-left";
35+
const rowClass = "flex w-full min-h-7 items-center gap-2 px-2.5 py-1 text-left";
3636
const contents = (
3737
<>
3838
<span className="min-w-0 flex-1 break-all text-xs font-bold text-slate-700 dark:text-slate-300">{group.grouped ? group.label : group.versions[0]}</span>

launcher/src/main/resources/net/modtale/launcher/ui/nativefx/launcher.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6621,6 +6621,7 @@
66216621

66226622
.project-detail-version-groups {
66236623
-fx-fill-width: true;
6624+
-fx-padding: 0;
66246625
-fx-background-color: rgba(255, 255, 255, 0.03);
66256626
-fx-border-color: rgba(255, 255, 255, 0.10);
66266627
-fx-border-radius: 8px;
@@ -6631,8 +6632,8 @@
66316632
-fx-border-width: 1px 0 0 0;
66326633
}
66336634
.project-detail-version-row {
6634-
-fx-min-height: 32px;
6635-
-fx-padding: 6px 10px;
6635+
-fx-min-height: 28px;
6636+
-fx-padding: 4px 10px;
66366637
-fx-background-color: transparent;
66376638
-fx-border-color: transparent;
66386639
-fx-border-width: 0;
@@ -6647,7 +6648,7 @@
66476648
-fx-border-color: #38bdf8;
66486649
-fx-border-width: 1px;
66496650
-fx-border-radius: 6px;
6650-
-fx-padding: 5px 9px;
6651+
-fx-padding: 3px 9px;
66516652
}
66526653
.project-detail-version-name {
66536654
-fx-text-fill: #cbd5e1;

0 commit comments

Comments
 (0)