mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 03:56:15 -08:00
style(m3u): adjust channel list item width and add responsive container queries
Entire-Checkpoint: 3ba3a7503b59
This commit is contained in:
1 parent
649d55a1c1
commit
c63988d0fc
3 files changed
+83
-1
No files matched your search
+6
@@ -3,6 +3,12 @@
|
||||
.scroll-viewport {
|
||||
min-height: calc(100vh - 190px);
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
|
||||
::ng-deep .cdk-virtual-scroll-content-wrapper {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.search-panel {
|
||||
|
||||
+7
@@ -1,3 +1,10 @@
|
||||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
::ng-deep {
|
||||
.mat-mdc-tab.mdc-tab {
|
||||
padding: 0 5px;
|
||||
|
||||
+70
-1
@@ -1,6 +1,6 @@
|
||||
// Main channel list item container
|
||||
.channel-list-item {
|
||||
width: 360px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 68px;
|
||||
@@ -9,6 +9,9 @@
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease;
|
||||
gap: 12px;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(0, 0, 0, 0.04);
|
||||
@@ -224,3 +227,69 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Container queries for responsive sidebar resizing
|
||||
// ============================================================================
|
||||
|
||||
@container (max-width: 350px) {
|
||||
.channel-list-item {
|
||||
gap: 8px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
.channel-logo {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
// Hide EPG timeline (progress bar + times) but keep program title
|
||||
.epg-timeline {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.epg-placeholder {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Hide info button, keep only favorite
|
||||
.program-info-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@container (max-width: 280px) {
|
||||
.channel-logo {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
// Hide all EPG content
|
||||
.epg-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-list-item {
|
||||
height: 48px;
|
||||
|
||||
&.compact {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
// Hide action buttons
|
||||
.action-buttons {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@container (max-width: 200px) {
|
||||
.channel-logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-list-item {
|
||||
gap: 4px;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user