Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions src/renderer/components/FtSubscribeButton/FtSubscribeButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,24 @@
block-size: 2em;
}

.subscribeButton.dropdownOpened,
.profileDropdownToggle.dropdownOpened {
border-end-start-radius: 0;
border-end-end-radius: 0;
}

.profileDropdown {
background-color: var(--side-nav-color);
box-shadow: 0 1px 2px rgb(0 0 0 / 50%);
border-radius: 4px;
color: var(--secondary-text-color);
display: inline;
font-size: 12px;
max-block-size: 200px;
margin-block: -10px 0;
max-block-size: min(60vh, 500px);
margin-block: -7px 0;
margin-inline: 5px 0;
overflow-y: scroll;
overflow-y: auto;
position: absolute;
text-align: center;
user-select: none;
z-index: 3;

/* accounts for parent's left and right margins */
inline-size: calc(100% - 10px);
inline-size: max(calc(100% - 10px), 250px);
}

.profileList {
Expand Down Expand Up @@ -130,6 +125,23 @@
text-overflow: ellipsis;
}

@media only screen and (width <= 680px) {
.profileDropdown {
inline-size: max(calc(100% - 10px), 180px);
}

.profileName {
white-space: normal;
overflow-wrap: anywhere;
}

.profile {
block-size: auto;
align-items: flex-start;
overflow: hidden;
}
}

.profile.subscribed {
background-color: var(--primary-color);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<p
:id="id + '-' + index"
class="profileName"
:title="profile.name"
dir="auto"
>
{{ profile.name }}
Expand Down
Loading