Skip to content

Commit 2254559

Browse files
committed
style fixes
1 parent fecad07 commit 2254559

5 files changed

Lines changed: 48 additions & 60 deletions

File tree

src/PrompterOne.Shared/AppShell/Components/MainLayoutGoLiveWidget.razor.css

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.app-live-widget {
22
position: fixed;
3-
right: calc(22px + env(safe-area-inset-right));
4-
bottom: calc(20px + env(safe-area-inset-bottom));
3+
right: 22px;
4+
bottom: 20px;
55
z-index: 60;
66
width: min(234px, calc(100vw - 28px));
77
display: flex;
@@ -150,42 +150,27 @@
150150

151151
@media (max-width: 900px) {
152152
.app-live-widget {
153-
right: calc(14px + env(safe-area-inset-right));
154-
bottom: calc(14px + env(safe-area-inset-bottom));
153+
right: 14px;
154+
bottom: 14px;
155155
width: min(210px, calc(100vw - 20px));
156156
}
157157
}
158158

159159
@media (max-width: 560px) {
160160
.app-live-widget {
161-
right: calc(8px + env(safe-area-inset-right));
162-
bottom: calc(18px + env(safe-area-inset-bottom));
163-
width: min(176px, calc(100vw - 24px));
164-
padding: 6px;
165-
gap: 6px;
161+
right: 10px;
162+
bottom: 10px;
163+
width: min(188px, calc(100vw - 20px));
164+
padding: 8px;
165+
gap: 8px;
166166
border-radius: 16px;
167167
}
168168

169169
.app-live-widget-preview {
170-
min-height: 74px;
170+
min-height: 92px;
171171
}
172172

173173
.app-live-widget-copy {
174-
gap: 2px;
175-
}
176-
177-
.app-live-widget-live-pill,
178-
.app-live-widget-timer {
179-
min-height: 18px;
180-
padding: 0 6px;
181-
font-size: 8px;
182-
}
183-
184-
.app-live-widget-title {
185-
font-size: 12px;
186-
}
187-
188-
.app-live-widget-detail {
189-
font-size: 10px;
174+
gap: 3px;
190175
}
191176
}

src/PrompterOne.Shared/AppShell/Components/MainLayoutHeader.razor.css

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,11 @@
2222
box-shadow: 0 0 10px rgba(214, 166, 91, .04);
2323
}
2424

25-
.app-header[data-reader-muted="true"] .btn-back {
26-
background: rgba(255, 255, 255, .012) !important;
27-
border: 1px solid rgba(214, 166, 91, .08);
28-
color: rgba(248, 241, 226, .50);
29-
box-shadow: none;
30-
}
31-
32-
.app-header[data-reader-muted="true"] .btn-back:hover {
33-
background: rgba(255, 255, 255, .024) !important;
34-
border-color: rgba(214, 166, 91, .14);
35-
color: rgba(248, 241, 226, .68);
36-
box-shadow: 0 0 10px rgba(214, 166, 91, .04);
37-
}
38-
39-
.app-header[data-reader-muted="true"] ::deep .go-live-shell-button {
40-
background: rgba(255, 255, 255, .01) !important;
41-
border-color: rgba(214, 166, 91, .08);
42-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
43-
color: rgba(248, 241, 226, .58);
44-
}
45-
46-
.app-header[data-reader-muted="true"] ::deep .go-live-shell-button:hover {
47-
background: rgba(255, 255, 255, .022) !important;
48-
border-color: rgba(214, 166, 91, .14);
49-
box-shadow: 0 0 12px rgba(214, 166, 91, .04);
50-
}
51-
5225
.btn-open-script {
5326
cursor: pointer;
5427
}
5528

56-
.app-header-file-input {
29+
.app-header-file-action ::deep .app-header-file-input {
5730
position: absolute;
5831
top: 0;
5932
left: 0;

src/PrompterOne.Shared/wwwroot/design/modules/90-utilities.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,36 @@
150150
.tp-scroll { padding: 0 6%; }
151151
.rsvp-word { font-size: 52px; }
152152
}
153+
154+
@media (max-width: 768px) and (max-height: 480px) {
155+
#screen-library.active {
156+
flex-direction: row;
157+
}
158+
159+
.lib-sidebar {
160+
width: min(220px, 34vw);
161+
border-right: var(--glass-border-light);
162+
border-bottom: none;
163+
padding: 10px 12px;
164+
flex: 0 0 auto;
165+
}
166+
167+
.lib-folders-section {
168+
margin-top: 12px;
169+
max-height: none;
170+
}
171+
172+
.lib-nav-bottom {
173+
margin-top: auto;
174+
padding-top: 10px;
175+
}
176+
177+
.lib-main {
178+
min-width: 0;
179+
min-height: 0;
180+
}
181+
182+
.lib-scroll {
183+
padding: 16px 14px 20px;
184+
}
185+
}

tests/PrompterOne.Web.UITests/Editor/EditorLineNumberLayoutTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ await UiScenarioArtifacts.CaptureLocatorAsync(
5959
}
6060
""");
6161
var lineNumberGap = contentLeftBoundary - lineNumberTextRight;
62-
await Assert.That(lineNumberGap >= 0).IsTrue().Because($"Expected Monaco line numbers to stay inside the gutter without overlapping content, but the computed gap was {lineNumberGap:0.##}.");
63-
await Assert.That(lineNumberGap <= BrowserTestConstants.Editor.MaximumLineNumberTextGapPx)
64-
.IsTrue()
65-
.Because($"Expected Monaco line numbers to keep a compact gutter gap, but the computed gap was {lineNumberGap:0.##}.");
62+
await Assert.That(lineNumberGap).IsBetween(BrowserTestConstants.Editor.MinimumLineNumberTextGapPx, BrowserTestConstants.Editor.MaximumLineNumberTextGapPx);
6663
}
6764
finally
6865
{

tests/PrompterOne.Web.UITests/Responsive/ResponsiveLayoutTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public Task LibraryRoute_KeepsPrimaryControlsVisibleAcrossResponsiveViewports(Re
2222
UiTestIds.Library.Page,
2323
UiTestIds.Library.FolderAll,
2424
UiTestIds.Library.OpenSettings,
25-
UiTestIds.Header.LibrarySearchSurface,
25+
UiTestIds.Header.LibrarySearch,
2626
UiTestIds.Header.GoLive,
2727
UiTestIds.Header.LibraryOpenScript,
2828
UiTestIds.Header.LibraryNewScript));
@@ -39,7 +39,7 @@ public Task LibraryRoute_KeepsHeaderBrandingVisibleAcrossIpadPortraitViewports(R
3939
UiTestIds.Header.Home,
4040
UiTestIds.Header.Brand,
4141
UiTestIds.Header.LibraryBreadcrumbCurrent,
42-
UiTestIds.Header.LibrarySearchSurface,
42+
UiTestIds.Header.LibrarySearch,
4343
UiTestIds.Header.GoLive,
4444
UiTestIds.Header.LibraryOpenScript,
4545
UiTestIds.Header.LibraryNewScript));

0 commit comments

Comments
 (0)