Skip to content

Commit 33de556

Browse files
committed
fix(web): scope mobile files tree styles to files sheet
1 parent 89fbf78 commit 33de556

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

packages/web/src/styles/components.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11580,7 +11580,7 @@ textarea.input {
1158011580
opacity: 1;
1158111581
}
1158211582

11583-
.file-tree-shell--mobile .file-tree-search {
11583+
.mobile-sheet--files .file-tree-shell--mobile .file-tree-search {
1158411584
margin: 0;
1158511585
border-right: none;
1158611586
border-left: none;
@@ -11589,19 +11589,19 @@ textarea.input {
1158911589
background: transparent;
1159011590
}
1159111591

11592-
.file-tree-shell--mobile .file-tree {
11592+
.mobile-sheet--files .file-tree-shell--mobile .file-tree {
1159311593
padding-bottom: 10px;
1159411594
}
1159511595

11596-
.file-tree-shell--mobile .tree-item {
11596+
.mobile-sheet--files .file-tree-shell--mobile .tree-item {
1159711597
min-height: 40px;
1159811598
margin: 0;
1159911599
border-radius: 0;
1160011600
padding-top: 8px;
1160111601
padding-bottom: 8px;
1160211602
}
1160311603

11604-
.file-tree-shell--mobile .tree-item.selected {
11604+
.mobile-sheet--files .file-tree-shell--mobile .tree-item.selected {
1160511605
padding-left: 14px;
1160611606
border-left: 2px solid color-mix(in srgb, var(--accent-blue) 88%, white 12%);
1160711607
background: color-mix(in srgb, var(--accent-blue) 12%, transparent);

packages/web/src/styles/components.theme.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,15 @@ describe("components.css theme-sensitive surfaces", () => {
10951095
".mobile-files-sheet__segment.active::after"
10961096
);
10971097
const mobileFilesTabAction = getLastRuleBlock(".mobile-files-sheet__tab-action");
1098-
const mobileFileSearch = getLastRuleBlock(".file-tree-shell--mobile .file-tree-search");
1099-
const mobileFileRow = getLastRuleBlock(".file-tree-shell--mobile .tree-item");
1100-
const mobileFileRowSelected = getLastRuleBlock(".file-tree-shell--mobile .tree-item.selected");
1098+
const mobileFileSearch = getLastRuleBlock(
1099+
".mobile-sheet--files .file-tree-shell--mobile .file-tree-search"
1100+
);
1101+
const mobileFileRow = getLastRuleBlock(
1102+
".mobile-sheet--files .file-tree-shell--mobile .tree-item"
1103+
);
1104+
const mobileFileRowSelected = getLastRuleBlock(
1105+
".mobile-sheet--files .file-tree-shell--mobile .tree-item.selected"
1106+
);
11011107
const supervisorRoot = getLastRuleBlock(".mobile-supervisor-sheet__root");
11021108
const supervisorHeader = getLastRuleBlock(".mobile-supervisor-sheet__detail-header");
11031109
const drawerItem = getLastRuleBlock(".mobile-workspace-drawer__item");

0 commit comments

Comments
 (0)