mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Fix RLS policy editor buttons overflow at lower resolutions (#43594)
Fixes #42584 Before: <img width="403" height="556" alt="Screenshot 2026-03-10 at 15 29 12" src="https://github.com/user-attachments/assets/14142f2e-63aa-4a88-948a-1897c46a4d24" /> After: <img width="403" height="556" alt="Screenshot 2026-03-10 at 15 29 37" src="https://github.com/user-attachments/assets/d3724b81-a4a6-417b-9d4a-429cfea4063e" /> Note that in large resolutions, the buttons don't take as much space as before: <img width="575" height="456" alt="Screenshot 2026-02-26 at 11 01 11" src="https://github.com/user-attachments/assets/2bbd39e4-7a4d-4217-8b21-9b21de55ad00" />
This commit is contained in:
1 parent
85e623b469
commit
be193b4e89
1 file changed
+3
-2
+3
-2
@@ -32,6 +32,7 @@ import {
|
||||
SelectItem_Shadcn_,
|
||||
SelectTrigger_Shadcn_,
|
||||
Select_Shadcn_,
|
||||
cn,
|
||||
} from 'ui'
|
||||
import { MultiSelectV2 } from 'ui-patterns/MultiSelectDeprecated/MultiSelectV2'
|
||||
|
||||
@@ -271,7 +272,7 @@ export const PolicyDetailsV2 = ({
|
||||
form.setValue('command', value)
|
||||
onUpdateCommand(value)
|
||||
}}
|
||||
className={`grid grid-cols-10 gap-3 ${isEditing ? 'opacity-50' : ''}`}
|
||||
className={cn('flex flex-wrap gap-3', isEditing && 'opacity-50')}
|
||||
>
|
||||
{[
|
||||
'select',
|
||||
@@ -283,7 +284,7 @@ export const PolicyDetailsV2 = ({
|
||||
value={x}
|
||||
disabled={isEditing}
|
||||
label={x.toLocaleUpperCase()}
|
||||
className={`col-span-2 w-auto ${isEditing ? 'cursor-not-allowed' : ''}`}
|
||||
className={cn('w-auto', isEditing && 'cursor-not-allowed')}
|
||||
/>
|
||||
))}
|
||||
</RadioGroup_Shadcn_>
|
||||
|
||||
Reference in new issue
Block a user