stack fill for player notes (#19039)

* stack fill for player notes

* nullcheck
This commit is contained in:
Kashargul
2026-01-16 23:59:50 +01:00
committed by GitHub
parent c80ce6e4ab
commit 9abef0b3b2
2 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
/client/Destroy()
GLOB.directory -= ckey
GLOB.clients -= src
persistent_client.set_client(null)
persistent_client?.set_client(null)
log_access("Logout: [key_name(src)]")
GLOB.tickets.ClientLogout(src)
+24 -22
View File
@@ -29,7 +29,7 @@ export const PlayerNotes = (props) => {
>
<Window.Content>
<Section fill title="Player notes">
<Stack vertical>
<Stack fill vertical>
<Stack.Item>
<Stack>
<Stack.Item>
@@ -75,27 +75,29 @@ export const PlayerNotes = (props) => {
</Stack>
</Stack.Item>
<Stack.Divider />
<Stack.Item>
<Table>
{ckeys.map((ckey) => (
<Table.Row key={ckey.name}>
<Table.Cell>
<Button
fluid
color="transparent"
icon={'user'}
onClick={() =>
act('show_player_info', {
name: ckey.name,
})
}
>
{ckey.name}
</Button>
</Table.Cell>
</Table.Row>
))}
</Table>
<Stack.Item grow>
<Section fill scrollable>
<Table>
{ckeys.map((ckey) => (
<Table.Row key={ckey.name}>
<Table.Cell>
<Button
fluid
color="transparent"
icon={'user'}
onClick={() =>
act('show_player_info', {
name: ckey.name,
})
}
>
{ckey.name}
</Button>
</Table.Cell>
</Table.Row>
))}
</Table>
</Section>
</Stack.Item>
<Stack.Divider />
<Stack.Item>