Skip to content

Commit

Permalink
fix(web): small css issues from v7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Apr 19, 2024
1 parent 683b3e5 commit 124deda
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/dev_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

## v7.1.0 bugs
- [x] unrenderable legacy 404 page
- [ ] "Search by Player IDs" filter on players page is overflowing
- [x] "Search by Player IDs" filter on players page is overflowing
- [x] history action modal needs py-1 because of the reason field outline
- [ ] ctrl+f doesn't work in the player modal anymore, if on the player or history pages
- criar um estado "any modal open" pra desabilitar todos hotkeys das páginas?
- [ ] history action modal needs py-1 because of the reason field outline
- [ ] make the new page searches case insensitive (history->reason and maybe more)
- [ ] remove all "blur" as that is slow as hell for browsers with hw acceleration disabled

Expand Down
2 changes: 1 addition & 1 deletion panel/src/layout/ActionModal/ActionIdsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function IdsBlock({ title, emptyMessage, ids, isSmaller }: IdsBlockProps) {
}
const hasIdsAvailable = Array.isArray(ids) && ids.length;

return <div className="mb-1 md:mb-4">
return <div className="px-1 mb-1 md:mb-4">
<div className="flex justify-between items-center pb-1">
<h3 className="text-xl">{title}</h3>
{/* {hasCopiedIds ? (
Expand Down
2 changes: 1 addition & 1 deletion panel/src/layout/ActionModal/ActionInfoTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function ActionInfoTab({ action, serverTime, tsFetch }: ActionInf
openPlayerModal({ license: linkedPlayer });
}

return <div className="mb-1 md:mb-4">
return <div className="px-1 mb-1 md:mb-4">
<dl className="pb-2">
<div className="py-0.5 grid grid-cols-3 gap-4 px-0">
<dt className="text-sm font-medium leading-6 text-muted-foreground">Date/Time</dt>
Expand Down
2 changes: 1 addition & 1 deletion panel/src/layout/ActionModal/ActionModifyTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function ActionModifyTab({ action, refreshModalData }: ActionModi
? `Revoke ${upperCasedType}`
: 'Revoke (no permission)';
return (
<div className="flex flex-col gap-4 mb-1 md:mb-4">
<div className="flex flex-col gap-4 px-1 mb-1 md:mb-4">
<div className="space-y-2">
<h3 className="text-xl">Revoke {upperCasedType}</h3>
<p className="text-muted-foreground text-sm">
Expand Down
2 changes: 1 addition & 1 deletion panel/src/layout/PlayerModal/PlayerBanTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function PlayerBanTab({ playerRef }: { playerRef: PlayerModalRefT
<Label htmlFor="durationSelect" className="col-span-4 xs:col-auto">
Duration
</Label>
<div className="col-span-full xs:col-span-3 space-y-1 ">
<div className="col-span-full xs:col-span-3 space-y-1">
<Select
onValueChange={setCurrentDuration}
defaultValue={currentDuration}
Expand Down
4 changes: 2 additions & 2 deletions panel/src/pages/Players/PlayersSearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ export function PlayerSearchBox({ doSearch, initialState }: PlayerSearchBoxProps
role="combobox"
aria-expanded={isSearchTypeDropdownOpen}
onClick={() => setSearchTypeDropdownOpen(!isSearchTypeDropdownOpen)}
className="xs:w-40 justify-between border-input bg-black/5 dark:bg-black/30 hover:dark:bg-primary grow md:grow-0"
className="xs:w-48 justify-between border-input bg-black/5 dark:bg-black/30 hover:dark:bg-primary grow md:grow-0"
>
Search by {selectedSearchType.label}
<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className='w-40'>
<DropdownMenuContent className='w-48'>
<DropdownMenuLabel>Search Type</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuRadioGroup value={currSearchType} onValueChange={setCurrSearchType}>
Expand Down

0 comments on commit 124deda

Please sign in to comment.