Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Log out buttons squished #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/material/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Button: ParentComponent<ButtonProps> = (props) => {
return (
<ButtonBase
class={clsx(
'state-layer hover:elevation-1 inline-flex h-10 items-center justify-center gap-2 rounded-full py-1 contrast-100 transition',
'state-layer hover:elevation-1 inline-flex h-10 shrink-0 items-center justify-center gap-2 rounded-full py-1 contrast-100 transition',
colorClasses(),
disabled() && 'cursor-not-allowed opacity-50',
props.leading ? 'pl-4' : 'pl-6',
Expand Down
2 changes: 1 addition & 1 deletion src/components/material/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ListItem: ParentComponent<ListItemProps> = (props) => {
return (
<ButtonBase
class={clsx(
'elevation-0 state-layer flex items-center gap-4 py-2 pl-4 pr-6 transition-colors before:bg-on-surface',
'elevation-0 state-layer flex shrink-0 items-center gap-4 py-2 pl-4 pr-6 transition-colors before:bg-on-surface',
variantStyle(),
props.selected && 'before:opacity-[.12]',
props.class,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const DashboardDrawer = (props: {
Devices
</h2>
<Show when={props.devices} keyed>
{devices => <DeviceList class="p-2" devices={devices} />}
{devices => <DeviceList class="overflow-y-auto p-2" devices={devices} />}
</Show>
<div class="grow" />
<Button class="m-4" leading={<Icon>add</Icon>} href="/pair" onClick={props.onClose}>
Expand Down
Loading