Skip to content

Commit f90fe11

Browse files
committed
fix: Resolve all 17 stylelint errors across 7 Vue components
Merge duplicate CSS selectors, reorder selectors to fix descending specificity warnings, and replace invalid h7 element with h6.
1 parent 4ee7008 commit f90fe11

7 files changed

Lines changed: 91 additions & 123 deletions

File tree

src/components/GenericObjectTable.vue

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,30 @@ export default {
12131213
margin-bottom: 12px;
12141214
}
12151215
1216+
.viewTable {
1217+
width: 100%;
1218+
border-collapse: collapse;
1219+
table-layout: auto;
1220+
min-width: 600px;
1221+
}
1222+
1223+
.viewTable th,
1224+
.viewTable td {
1225+
padding: 12px 8px;
1226+
text-align: left;
1227+
border-bottom: 1px solid var(--color-border);
1228+
width: auto;
1229+
min-width: 120px;
1230+
}
1231+
1232+
.viewTable th {
1233+
background: var(--color-background-dark);
1234+
font-weight: 600;
1235+
position: sticky;
1236+
top: 0;
1237+
z-index: 1;
1238+
}
1239+
12161240
.statisticsTable {
12171241
width: 100%;
12181242
border-collapse: collapse;
@@ -1240,13 +1264,6 @@ export default {
12401264
padding: 4px 8px;
12411265
}
12421266
1243-
.truncatedText {
1244-
max-width: 200px;
1245-
overflow: hidden;
1246-
text-overflow: ellipsis;
1247-
white-space: nowrap;
1248-
}
1249-
12501267
/* Filter Styles */
12511268
.viewFilters {
12521269
display: flex;
@@ -1338,30 +1355,6 @@ export default {
13381355
background: var(--color-main-background);
13391356
}
13401357
1341-
.viewTable {
1342-
width: 100%;
1343-
border-collapse: collapse;
1344-
table-layout: auto;
1345-
min-width: 600px;
1346-
}
1347-
1348-
.viewTable th,
1349-
.viewTable td {
1350-
padding: 12px 8px;
1351-
text-align: left;
1352-
border-bottom: 1px solid var(--color-border);
1353-
width: auto;
1354-
min-width: 120px;
1355-
}
1356-
1357-
.viewTable th {
1358-
background: var(--color-background-dark);
1359-
font-weight: 600;
1360-
position: sticky;
1361-
top: 0;
1362-
z-index: 1;
1363-
}
1364-
13651358
.viewTableRow:hover {
13661359
background: var(--color-background-hover);
13671360
}

src/modals/object/MergeObject.vue

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ export default {
815815
.object-id {
816816
color: var(--color-text-maxcontrast);
817817
font-size: 0.9em;
818+
font-family: monospace;
818819
margin: 0;
819820
}
820821
@@ -924,6 +925,32 @@ export default {
924925
white-space: nowrap;
925926
}
926927
928+
.file-table th, .relation-table th {
929+
background-color: var(--color-background-dark);
930+
font-weight: bold;
931+
position: sticky;
932+
top: 0;
933+
z-index: 1;
934+
}
935+
936+
.report-table {
937+
width: 100%;
938+
border-collapse: collapse;
939+
margin-top: 8px;
940+
}
941+
942+
.report-table th,
943+
.report-table td {
944+
padding: 8px 12px;
945+
text-align: left;
946+
border-bottom: 1px solid var(--color-border);
947+
}
948+
949+
.report-table th {
950+
background-color: var(--color-background-dark);
951+
font-weight: bold;
952+
}
953+
927954
.file-table th:nth-child(1), .file-table td:nth-child(1) {
928955
width: 60%;
929956
}
@@ -948,14 +975,6 @@ export default {
948975
width: 25%;
949976
}
950977
951-
.file-table th, .relation-table th {
952-
background-color: var(--color-background-dark);
953-
font-weight: bold;
954-
position: sticky;
955-
top: 0;
956-
z-index: 1;
957-
}
958-
959978
.file-table tbody tr:hover,
960979
.relation-table tbody tr:hover {
961980
background-color: var(--color-background-hover);
@@ -998,12 +1017,6 @@ export default {
9981017
margin-top: 8px;
9991018
}
10001019
1001-
.object-id {
1002-
color: var(--color-text-maxcontrast);
1003-
font-size: 0.9em;
1004-
font-family: monospace;
1005-
}
1006-
10071020
.object-title {
10081021
color: var(--color-main-text);
10091022
font-weight: 500;
@@ -1032,24 +1045,6 @@ export default {
10321045
margin-bottom: 4px;
10331046
}
10341047
1035-
.report-table {
1036-
width: 100%;
1037-
border-collapse: collapse;
1038-
margin-top: 8px;
1039-
}
1040-
1041-
.report-table th,
1042-
.report-table td {
1043-
padding: 8px 12px;
1044-
text-align: left;
1045-
border-bottom: 1px solid var(--color-border);
1046-
}
1047-
1048-
.report-table th {
1049-
background-color: var(--color-background-dark);
1050-
font-weight: bold;
1051-
}
1052-
10531048
.error-text {
10541049
color: var(--color-error);
10551050
}

src/modals/object/ObjectModal.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ export default {
724724
725725
.codeMirrorContainer :deep(.cm-editor) {
726726
height: 100%;
727+
outline: none !important;
727728
}
728729
729730
.codeMirrorContainer :deep(.cm-scroller) {
@@ -796,22 +797,11 @@ export default {
796797
padding: 16px;
797798
}
798799
799-
.form-field {
800-
margin-bottom: 16px;
801-
}
802-
803800
/* CodeMirror */
804-
.codeMirrorContainer {
805-
margin-block-start: 6px;
806-
}
807-
808801
.codeMirrorContainer :deep(.cm-content) {
809802
border-radius: 0 !important;
810803
border: none !important;
811804
}
812-
.codeMirrorContainer :deep(.cm-editor) {
813-
outline: none !important;
814-
}
815805
.codeMirrorContainer.light > .vue-codemirror {
816806
border: 1px dotted silver;
817807
}

src/modals/object/ViewObject.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,11 +3431,15 @@ export default {
34313431
justify-content: space-between;
34323432
text-align: left;
34333433
width: 100%;
3434+
flex-wrap: wrap;
34343435
}
34353436
34363437
.value-input-container {
34373438
flex: 1;
34383439
text-align: left;
3440+
padding: 0;
3441+
margin: 0;
3442+
width: 100%;
34393443
}
34403444
34413445
.drop-property-btn {
@@ -3486,14 +3490,6 @@ export default {
34863490
text-align: left;
34873491
}
34883492
3489-
.value-input-container {
3490-
flex: 1;
3491-
text-align: left;
3492-
padding: 0;
3493-
margin: 0;
3494-
width: 100%;
3495-
}
3496-
34973493
.value-input-container .text-field {
34983494
margin: 0;
34993495
padding: 0;
@@ -3829,10 +3825,6 @@ export default {
38293825
word-break: unset;
38303826
}
38313827
3832-
.value-cell-content {
3833-
flex-wrap: wrap;
3834-
}
3835-
38363828
.viewObjectDialog .viewTable td.table-row-type {
38373829
overflow: hidden;
38383830
text-overflow: ellipsis;

src/views/dashboard/DashboardIndex.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ export default {
3333
margin-block-end: 4rem;
3434
}
3535
36+
.dashboard-content > .graphs .content {
37+
display: flex;
38+
gap: 4px;
39+
}
40+
3641
/* most searched terms */
3742
.dashboard-content > .most-searched-terms {
3843
display: grid;
@@ -113,10 +118,6 @@ body[data-theme-dark] .dashboard-content > .most-searched-terms > div {
113118
grid-column-start: 1;
114119
grid-column-end: 3;
115120
}
116-
.dashboard-content > .graphs .content {
117-
display: flex;
118-
gap: 4px;
119-
}
120121
.dashboard-content > .graphs .dashboard-small-list {
121122
display: flex;
122123
flex-direction: column;

src/views/settings/sections/ArchiMateImportExport.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
:key="sectionName"
230230
class="section-error-group">
231231
<div class="section-header">
232-
<h7>{{ sectionData.section_name }}</h7>
232+
<h6>{{ sectionData.section_name }}</h6>
233233
<span class="section-error-count">{{ sectionData.total_errors }} errors</span>
234234
</div>
235235
<div class="section-error-details">
@@ -1305,6 +1305,8 @@ export default {
13051305
13061306
.error-details {
13071307
padding: 1rem;
1308+
flex: 1;
1309+
min-width: 0;
13081310
}
13091311
13101312
.error-details p {
@@ -1672,11 +1674,6 @@ export default {
16721674
.error-type-badge.encoding { background: #f1f8e9; color: #558b2f; }
16731675
.error-type-badge.general { background: #f5f5f5; color: #424242; }
16741676
1675-
.error-details {
1676-
flex: 1;
1677-
min-width: 0;
1678-
}
1679-
16801677
.error-message {
16811678
font-weight: 500;
16821679
color: var(--color-main-text);
@@ -1736,7 +1733,7 @@ export default {
17361733
border-bottom: 1px solid var(--color-border);
17371734
}
17381735
1739-
.section-header h7 {
1736+
.section-header h6 {
17401737
margin: 0;
17411738
font-size: 0.9rem;
17421739
font-weight: 600;

src/views/settings/sections/StatisticsOverview.vue

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,32 @@ export default defineComponent({
496496
border-bottom: 1px solid var(--color-border-dark);
497497
}
498498
499+
.modules-table {
500+
width: 100%;
501+
border-collapse: collapse;
502+
font-size: 0.9em;
503+
}
504+
505+
.modules-table thead {
506+
position: sticky;
507+
top: 0;
508+
background-color: var(--color-background-hover);
509+
z-index: 1;
510+
}
511+
512+
.modules-table th {
513+
padding: 10px 12px;
514+
text-align: left;
515+
font-weight: 600;
516+
border-bottom: 2px solid var(--color-border);
517+
white-space: nowrap;
518+
}
519+
520+
.modules-table td {
521+
padding: 8px 12px;
522+
border-bottom: 1px solid var(--color-border-dark);
523+
}
524+
499525
.statistics-table tbody tr:last-child td {
500526
border-bottom: none;
501527
}
@@ -727,32 +753,6 @@ export default defineComponent({
727753
border-radius: var(--border-radius);
728754
}
729755
730-
.modules-table {
731-
width: 100%;
732-
border-collapse: collapse;
733-
font-size: 0.9em;
734-
}
735-
736-
.modules-table thead {
737-
position: sticky;
738-
top: 0;
739-
background-color: var(--color-background-hover);
740-
z-index: 1;
741-
}
742-
743-
.modules-table th {
744-
padding: 10px 12px;
745-
text-align: left;
746-
font-weight: 600;
747-
border-bottom: 2px solid var(--color-border);
748-
white-space: nowrap;
749-
}
750-
751-
.modules-table td {
752-
padding: 8px 12px;
753-
border-bottom: 1px solid var(--color-border-dark);
754-
}
755-
756756
.modules-table tbody tr:last-child td {
757757
border-bottom: none;
758758
}

0 commit comments

Comments
 (0)