mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°3915 - Fix very long strings (typically URLs) overflowing from their containers in text attributes and activity panel entries.
This commit is contained in:
@@ -96,6 +96,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default;
|
||||
display: table;
|
||||
width: 100%;
|
||||
color: $ibo-field--value--color;
|
||||
word-break: break-word; /* Avoid value to overflow from its container with very long strings (typically URLs) */
|
||||
|
||||
/* Hack to force a table to fit its container without overflow (see N°2127) */
|
||||
/* Note that along with with, we now display a "expand" icon on large fields so we can have a better view of its content */
|
||||
|
||||
@@ -185,29 +185,6 @@ $ibo-activity-panel--load-more-entries--border: $ibo-content-block--border !defa
|
||||
color: $ibo-activity-entry--main-information--text-color;
|
||||
background-color: $ibo-activity-entry--main-information--background-color;
|
||||
border-radius: $ibo-activity-entry--main-information--border-radius;
|
||||
|
||||
/* Avoid pre (code snippets) to overflow outside the entry */
|
||||
pre{
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/* Avoid table to overflow outside the entry (see N°2127) */
|
||||
table{
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Specific hyperlink color */
|
||||
a{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--text-color;
|
||||
|
||||
&:hover{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-hover--text-color;
|
||||
}
|
||||
&:active,
|
||||
&:focus{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-active--text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-activity-entry--main-information-icon{
|
||||
margin-right: $ibo-activity-entry--main-information--elements-spacing;
|
||||
@@ -216,7 +193,33 @@ $ibo-activity-panel--load-more-entries--border: $ibo-content-block--border !defa
|
||||
}
|
||||
|
||||
.ibo-activity-entry--main-information-content {
|
||||
flex-grow: 1; /* So it occupies all the remaining width, which is easier for the user to click */
|
||||
word-break: break-word; /* To avoid content to overflow its container (typically very long URLs) */
|
||||
|
||||
/* Avoid pre (code snippets) to overflow outside the entry */
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* Avoid table to overflow outside the entry (see N°2127) */
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Specific hyperlink color */
|
||||
a {
|
||||
color: $ibo-activity-entry--main-information-hyperlink--text-color;
|
||||
|
||||
&:hover {
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-hover--text-color;
|
||||
}
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-active--text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ibo-activity-entry--sub-information {
|
||||
|
||||
Reference in New Issue
Block a user