Skip to content

Commit f7f57de

Browse files
committed
fix extension manager styles with overlong content
URL change notices didn't break and could push the action buttons out of the layout.
1 parent 12795f2 commit f7f57de

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

lib/plugins/extension/GuiExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function render()
4646
$html .= '<div class="actions">';
4747
// show the available update if there is one
4848
if ($this->extension->isUpdateAvailable()) {
49-
$html .= ' <div class="version">' . $this->getLang('available_version') . ' ' .
50-
hsc($this->extension->getLastUpdate()) . '</div>';
49+
$html .= ' <div class="available">' . $this->getLang('available_version') . ' ' .
50+
'<span class="version">' . hsc($this->extension->getLastUpdate()) . '</span></div>';
5151
}
5252

5353
$html .= $this->actions();

lib/plugins/extension/style.less

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@
6666

6767
section.extension {
6868
display: grid;
69-
grid-template-columns: @thumbwidth auto 15em;
69+
grid-template-columns: @thumbwidth auto 22%;
7070
grid-template-rows: repeat(4, auto);
7171
margin-bottom: 1em;
7272
border-bottom: 1px solid @ini_border;
73+
word-break: break-word;
7374

7475
> .screenshot {
7576
grid-column: 1;
@@ -132,6 +133,7 @@
132133
}
133134

134135
.version {
136+
white-space: nowrap;
135137
}
136138
}
137139

@@ -154,9 +156,14 @@
154156
align-items: end;
155157
gap: 0.5em;
156158

157-
.version {
159+
.available {
158160
line-height: 1.2;
159161
margin-bottom: 1em;
162+
text-align: right;
163+
164+
.version {
165+
white-space: nowrap;
166+
}
160167
}
161168
}
162169

0 commit comments

Comments
 (0)