Skip to content

Commit 113b0fa

Browse files
committed
Fixes component breaking out of container
1 parent 3c83dff commit 113b0fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resources/css/index.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,15 @@
7474
@import './themes/xcode.css';
7575
@import './themes/xt256.css';
7676

77+
.filament-syntax-entry-component .grid {
78+
@apply block;
79+
}
80+
7781
.filament-syntax-entry {
7882
@apply font-mono rounded-xl overflow-hidden shadow-sm ring-1;
7983

8084
.hljs {
81-
@apply block p-6 overflow-x-auto whitespace-pre-wrap;
85+
@apply block p-6 overflow-x-scroll;
8286
}
8387
}
8488

resources/views/syntax-entry.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry" wire:ignore>
1+
<x-dynamic-component class="filament-syntax-entry-component" :component="$getEntryWrapperView()" :entry="$entry" wire:ignore>
22
<div
33
class="filament-syntax-entry"
44
x-load-js="[@js(\Filament\Support\Facades\FilamentAsset::getScriptSrc(

0 commit comments

Comments
 (0)