Skip to content

Commit 972ae70

Browse files
committed
Fix button overlap in KeyDetailDrawer, limit drawer height on mobile
1 parent 48d96b3 commit 972ae70

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

cloud/src/LrmCloud.Web/Components/KeyDetailDrawer.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@
9595
<hr />
9696

9797
@* Actions *@
98-
<RadzenStack Orientation="Radzen.Orientation.Horizontal" JustifyContent="JustifyContent.SpaceBetween">
98+
<RadzenStack Orientation="Radzen.Orientation.Horizontal" JustifyContent="JustifyContent.SpaceBetween" Wrap="FlexWrap.Wrap" Gap="0.5rem">
9999
<RadzenButton Variant="Radzen.Variant.Outlined" ButtonStyle="ButtonStyle.Danger"
100100
Size="ButtonSize.Small" Icon="delete" Text="Delete" Click="@HandleDelete" />
101-
<RadzenStack Orientation="Radzen.Orientation.Horizontal" Gap="0.5rem">
101+
<RadzenStack Orientation="Radzen.Orientation.Horizontal" Wrap="FlexWrap.Wrap" Gap="0.5rem">
102102
<RadzenButton Variant="Radzen.Variant.Outlined" ButtonStyle="ButtonStyle.Primary"
103103
Size="ButtonSize.Small" Icon="translate" Text="Translate" Click="@HandleTranslateAll" />
104104
<RadzenButton ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Small"

cloud/src/LrmCloud.Web/wwwroot/css/app.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,20 +1533,29 @@ ul.rz-profile-menu > li > ul.rz-navigation-menu {
15331533
}
15341534

15351535
.translation-toolbar .rz-button {
1536-
flex: 1 1 auto;
1536+
flex: 0 0 auto;
15371537
min-width: 44px;
1538-
padding-left: 0.5rem;
1539-
padding-right: 0.5rem;
1540-
}
1541-
1542-
/* Hide button text on very small screens */
1543-
.translation-toolbar .rz-button .rz-button-text {
1544-
display: none;
1538+
padding-left: 0.75rem;
1539+
padding-right: 0.75rem;
15451540
}
15461541

15471542
/* Ensure split button also responsive */
15481543
.translation-toolbar .rz-splitbutton {
15491544
flex: 0 0 auto;
15501545
}
1546+
1547+
/* Button row needs proper gap */
1548+
.translation-toolbar .rz-stack {
1549+
gap: 0.5rem !important;
1550+
}
1551+
}
1552+
1553+
/* Editor drawer on mobile - make collapsible or smaller */
1554+
@media (max-width: 599px) {
1555+
.editor-drawer {
1556+
max-height: 250px;
1557+
overflow-y: auto;
1558+
margin-bottom: 0.5rem;
1559+
}
15511560
}
15521561

0 commit comments

Comments
 (0)